umeng_plugin 0.1.0 copy "umeng_plugin: ^0.1.0" to clipboard
umeng_plugin: ^0.1.0 copied to clipboard

outdated

A new Flutter plugin.

umeng_plugin #

 umeng_plugin:
    git:
      url: https://gitlab.com/novapps/flutter-app/frameworks/umeng_plugin.git

Umeng统计插件 #

初始化 #

UmengPlugin.init(
    String iOSAppKey,
    String androidAppKey,
    String channel, //渠道标识
    bool logEnable, //设置是否在console输出sdk的log信息.
    bool encrypt, //设置是否对日志信息进行加密, 默认NO(不加密).设置为YES, umeng SDK 会将日志信息做加密处理
)

Android端需要在主Activity生命周期中注册,否则统计不生效 #

MobclickAgent.onResume(this); // 不能遗漏
MobclickAgent.onPause(this); // 不能遗漏

Android端获取Channel #

UmengPlugin.getChannel()

事件埋点 #

UmengPlugin.event(String eventId)  传入事件名称
UmengPlugin.eventMap               传入事件名称和map参数
UmengPlugin.beginLogPageView
UmengPlugin.endLogPageView
1
likes
0
pub points
0%
popularity

Publisher

unverified uploader

A new Flutter plugin.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on umeng_plugin