flutter_umeng_analytics 0.0.2 copy "flutter_umeng_analytics: ^0.0.2" to clipboard
flutter_umeng_analytics: ^0.0.2 copied to clipboard

Flutter Plugin for umeng:analytics (友盟统计)

flutter_umeng_analytics #

Flutter plugin for umeng:analytics

Usage #

Init #

import 'package:platform/platform.dart';

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

Log page #

initState() {
  super.initState();

  UMengAnalytics.beginPageView("home");
}

dispose() {
  super.dispose();

  UMengAnalytics.endPageView("home");
}

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

Getting Started #

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

For help on editing plugin code, view the documentation.

5
likes
25
pub points
0%
popularity

Publisher

unverified uploader

Flutter Plugin for umeng:analytics (友盟统计)

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_umeng_analytics