라이브 로그 전달 받기

    라이브 로그 전달 받기


    The content is currently unavailable in English. You are viewing the default Korean version.
    Article summary

    Stream<ShopLivePlayerLog> log를 통해 라이브 로그를 전달 받습니다.

    ShopLivePlayerLog

    Property name

    Type

    Description

    name

    String

    Event 의 이름

    feature

    String

    Event 의 종류 click, show, action

    campaignKey

    String?

    방송의 Unique Key

    parameter

    Map<String, dynamic>?

    관련 추가 parameter

    late final _shopLivePlayerPlugin = ShopLivePlayer();
    _shopLivePlayerPlugin.log.listen((data) {
      _showToast(
          "clickLog : ${data.name}, ${data.feature}, ${data.campaignKey}, ${const JsonEncoder().convert(data.payload)}");
    });