DMHubClient class

Properties

flutterSDKVersion String
no setter
hashCode int
The hash code for this object.
no setterinherited
options DMHubOptions?
获取配置信息DMHubOptions.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearIdentity() Future<Map<String, dynamic>>
清除当前设置的客户身份
currentIdentity() Future<Map<String, dynamic>>
获取当前设置的客户身份
disableCollect(List<String> names) Future<void>
enableCollect(List<String> names) Future<void>
init(DMHubOptions options) Future<void>
初始化SDK 指定options. 范围:android|ios
initWithOptions(DMHubOptions options) Future<void>
初始化SDK 指定options 范围:ios
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onGeTuiNotificationMessageArrived(String taskId, String messageId) Future<void>
在自定义的 GTIntentService 的 onNotificationMessageArrived 方法中调用
onGeTuiReceiveClientId(String appKey, String clientId) Future<void>
在自定义的 GTIntentService 的 onReceiveClientId 方法中调用
onGeTuiReceiveMessageData(String taskId, String messageId, Map<String, dynamic> playload) Future<void>
在自定义的 GTIntentService 的 onReceiveMessageData 方法中调用
onGlobalParamsPush(Map<String, dynamic> req) Future<void>
如果一个应用设置的追踪代码较多,而且他们之间有一些公共的参数,如果在每个追踪点都分别设置这些参数,会给代码维护带来不便。 为此,DMHubSDK引入了push方法,用来设置应用全局的参数。通过push方法设置的参数,在该应用后续的track方法调用时,会自动传递。
onJPushNotificationMessageArrived(Map<String, dynamic> bundle) Future<void>
JPush 数据接收
onJPushReceiveBroadcast() Future<void>
当自定义的 JPush 广播接收器收到来自 JPush 的广播时调用
onJPushReceiveMessageData(Map<String, dynamic> bundle) Future<void>
JPush 数据接收
onJPushReceiveRegisterId(String appKey, String clientId) Future<void>
JPush 注册
setAppKey(String appKey, String provider) Future<void>
设置消息推送的相关信息,以便通过 DM Hub 对客户进行 App 消息推送
setAppKeyWithPushId(String appKey, String pushId, String provider) Future<void>
设置消息推送的相关信息,以便通过 DM Hub 对客户进行 App 消息推送
setIdentity(String identityType, String identityValue) Future<void>
设置客户身份,用于绑定事件,如果重复设置,将会使用新的客户身份进行事件绑定
toString() String
A string representation of this object.
inherited
track(String eventId) Future<void>
跟踪自定义客户事件
trackExitView(String viewName) Future<void>
跟踪离开视图事件
trackMap(String eventId, Map<String, dynamic> properties) Future<void>
跟踪自定义客户事件
trackOpenView(String viewName) Future<void>
跟踪进入视图事件
trackReceiveGeTuiPayloadData(Map<String, dynamic> userInfo) Future<void>
跟踪收到 GeTui 透传消息事件
trackReceiveJPushMessage(Map<String, dynamic> userInfo) Future<void>
跟踪收到 JPush 自定义消息事件

Operators

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

Static Properties

getInstance DMHubClient
no setter