FlutterHuajiPush class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addEventHandler({required EventHandler onRegisteredDeviceToken, required EventHandler onRegisteredDone, required EventHandler unRegistered, required EventHandlerMap onReceiveNotificationResponse, required EventHandlerMap onReceiveMessage, required EventHandler xgPushDidSetBadge, required EventHandler xgPushDidBindWithIdentifier, required EventHandler xgPushDidUnbindWithIdentifier, required EventHandler xgPushDidUpdatedBindedIdentifier, required EventHandler xgPushDidClearAllIdentifiers, required EventHandlerMap xgPushClickAction})
→ void
-
-
addTags(List<String> tags)
→ void
-
追加标签
tags类型为字符串数组(标签字符串不允许有空格或者是tab字符)
tagStr
-
cleanAccounts()
→ void
-
删除所有账号
-
cleanTags()
→ void
-
清除所有标签
-
configureClusterDomainName(String domainStr)
→ void
-
集群域名配置(非广州集群需要在startXg之前调用此函数)
-
deleteAccount(String account, AccountType accountType)
→ void
-
删除指定账号
account 账号标识
accountType 账号类型枚举
-
deleteTags(List<String> tags)
→ void
-
删除指定标签
tags类型为字符串数组(标签字符串不允许有空格或者是tab字符)
tagStr
-
getXgAndroidApi()
→ XgAndroidApi
-
获取XgAndroidApi
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
setAccount(String account, AccountType accountType)
→ void
-
设置账号
account 账号标识
accountType 账号类型枚举
-
setAppBadge(int badgeSum)
→ void
-
设置应用角标(当同步角标值到TPNS成功后,用户设置应用角标为对应的值)
-
setBadge(int badgeSum)
→ void
-
同步角标值到TPNS服务器
-
setEnableDebug(bool enableDebug)
→ void
-
debug模式
-
setTags(List<String> tags)
→ void
-
覆盖标签(清除所有标签再追加)
tags类型为字符串数组(标签字符串不允许有空格或者是tab字符)
tagStr
-
startXg(String accessId, String accessKey)
→ void
-
注册推送服务
iOS需传accessId和accessKey
android不需要传参数
-
stopXg()
→ void
-
注销推送服务(注销后无法再收到任何推送)
-
toString()
→ String
-
A string representation of this object.
inherited