All Projects → AweiLoveAndroid → umeng_analytics_flutter

AweiLoveAndroid / umeng_analytics_flutter

Licence: Apache-2.0 license
友盟统计Flutter插件

Programming Languages

java
68154 projects - #9 most used programming language
dart
5743 projects
objective c
16641 projects - #2 most used programming language
ruby
36898 projects - #4 most used programming language

umeng_analytics_flutter

友盟统计Flutter插件

友盟统计官方SDK: umeng:analytics

使用

初始化

import 'package:platform/platform.dart';

final Platform platform = const LocalPlatform();
if (platform.isAndroid)
  UMengAnalytics.init('Android AppKey', encrypt: true, reportCrash: false);
else if (platform.isIOS)
  UMengAnalytics.init('iOS AppKey', encrypt: true, reportCrash: false);

需要收集日志的页面

initState() {
  super.initState();

  UMengAnalytics.beginPageView("home");
}

dispose() {
  super.dispose();

  UMengAnalytics.endPageView("home");
}

someFunction() {
  UMengAnalytics.logEvent("some click");
}

QQ群:

2千人QQ群,Flutter学习开发交流群,QQ群号:202921297, 欢迎大家加入。


其它

For help getting started with Flutter, view our online documentation.

For help on editing plugin code, view the documentation.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].