MethodChannelUmengAnalyticsPlugin class
An implementation of UmengAnalyticsPluginPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- UmengAnalyticsPluginPlatform
- MethodChannelUmengAnalyticsPlugin
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getPlatformVersion(
) → Future< String?> -
override
-
initialize(
{required String androidAppKey, required String iosAppKey, required String channel, required bool logEnabled, required bool encryptEnabled}) → Future< void> -
override
-
logEvent(
String eventId, {Map< String, String> ? properties}) → Future<void> -
自定义事件统计
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pageEnd(
String pageName) → Future< void> -
页面结束统计
override
-
pageStart(
String pageName) → Future< void> -
页面开始统计
override
-
signIn(
String userId, {String? provider}) → Future< void> -
账号登录统计
userId: 用户账号ID,不能为空provider: 账号来源。如果用户通过第三方账号登录,可以传入第三方名称,如:"Weibo", "QQ" 等,可选override -
signOut(
) → Future< void> -
账号登出统计
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited