PushManager class

Constructors

PushManager()

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

clearAllNotification(String type) Future<String?>
清楚推送所有通知
getRegId(String type) Future<String?>
获取客户端的 RegId
initHonourPush({required bool initToken, bool enableLog = false}) Future<void>
初始化Honour push, initToken 是否推送注册成功之后返回token
initOppoPush({required String appKey, required String appSecret, bool needLog = false}) Future<void>
初始化OPPO push, appKey 应用appKey appSecret 应用appSecret needLog 应用是否打开推送日志
initVivoPush({bool enableLog = false}) Future<void>
初始化Vivo push, appKey 应用appKey appSecret 应用appSecret
initXiaomiPush({required String appId, required String appKey, bool enableLog = false}) Future<void>
初始化小米push,如果没有appId或appKey,请登录小米开发者中心申请 appId 应用appId appKey 应用appKey
unRegister(String type) Future<String?>
取消推送注册

Constants

channel → const MethodChannel