UmengPushSdk class
友盟推送SDK接口
Constructors
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
addAlias(
String alias, String type) → Future< bool?> - 增加别名
-
addTags(
List< String> tags) → Future<bool?> - 添加标签
-
getRegisteredId(
) → Future< String?> - 获取deviceToken
-
getTags(
) → Future< List?> - 获取已设置的标签
-
register(
String iOSAppkey, String iOSChannel) → Future< void> - 注册推送
-
removeAlias(
String alias, String type) → Future< bool?> - 删除别名
-
removeTags(
List< String> tags) → Future<bool?> - 移除标签
-
setAlias(
String alias, String type) → Future< bool?> - 设置别名
-
setBadge(
int number) → Future< bool?> - 设置角标,Android仅支持华为、荣耀、VIVO、OPPO(需申请)
-
setLogEnable(
bool enable) → Future< void> - 日志开关
-
setMessageCallback(
Callback? callback) → void - 设置透传消息回调
-
setNotificationCallback(
Callback? receive, Callback? open) → void - 设置通知消息回调(到达:receive,点击:open)
-
setPushEnable(
bool enable) → Future< void> - 设置推送是否可用,仅支持Android
-
setTokenCallback(
Callback? callback) → void - 设置deviceToken回调,仅支持Android