UmengAnalyticsWithPushPlatform class abstract

The interface that implementations of umeng_analytics_with_push must implement.

Platform implementations should extend this class rather than implement it as umeng_analytics_with_push does not consider newly added methods to be breaking changes. Extending this class (using extends) ensures that the subclass will get the default implementation, while platform implementations that implements this interface will be broken by newly added UmengAnalyticsWithPushPlatform methods.

Inheritance
  • Object
  • PlatformInterface
  • UmengAnalyticsWithPushPlatform
Implementers

Constructors

UmengAnalyticsWithPushPlatform()
Constructs a UmengAnalyticsWithPushPlatform.

Properties

deviceToken Future<String?>
获取 PushToken
no setter
hashCode int
The hash code for this object.
no setterinherited
oaid Future<String?>
OAID
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
testDeviceInfo Future<Map<String, String?>?>
设备测试信息
no setter
utdid Future<String?>
UTDID
no setter

Methods

addAlias(String type, String alias) Future<void>
增加别名
addTags(List<String> tags) Future<void>
添加标签
getTags() Future<List<String>>
获取服务器端的所有标签
initialize({String? type, bool? catchUncaughtExceptions}) Future<void>
初始化推送和分析
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onEvent(String event, [dynamic params, int? counter]) Future<void>
统计事件
onPageChanged(String page) Future<void>
页面变化
onPageEnd(String page) Future<void>
页面退到后台
onPageStart(String page) Future<void>
页面进入前台
onProfileSignIn(String id, String provider) Future<void>
统计应用账号登录
onProfileSignOut() Future<void>
统计应用账号登出
putAlias(String type, String alias) Future<void>
绑定别名
removeAlias(String type, String alias) Future<void>
移除别名
removeTags(List<String> tags) Future<void>
删除标签
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance UmengAnalyticsWithPushPlatform
The default instance of UmengAnalyticsWithPushPlatform to use.
getter/setter pair