PushService class

推送服务类 用于处理极光推送相关功能

Constructors

PushService()

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

addTags(List<String> tags) Future<void>
添加标签
cleanTags() Future<void>
清空所有标签
deleteAlias() Future<void>
删除别名
deleteTags(List<String> tags) Future<void>
删除标签
getRegistrationID() Future<String?>
获取RegistrationID
init() Future<void>
初始化推送服务
isPushStopped() Future<bool>
判断推送服务是否停止
resumePush() Future<void>
恢复推送服务
setAlias(String alias) Future<void>
设置别名
setPushTime(List<int> days, int startHour, int endHour) Future<void>
设置推送时间
setSilenceTime(int startHour, int startMinute, int endHour, int endMinute) Future<void>
设置通知静默时间
setTags(List<String> tags) Future<void>
设置标签
stopPush() Future<void>
停止推送服务