AliyunPushFlutterPlatform class abstract

Inheritance
  • Object
  • PlatformInterface
  • AliyunPushFlutterPlatform
Implementers

Constructors

AliyunPushFlutterPlatform()
Constructs a AliyunPushFlutterPlatform.

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

addAlias(String alias) Future<Map>
添加别名
addMessageReceiver({PushCallback? onNotification, PushCallback? onMessage, PushCallback? onNotificationOpened, PushCallback? onNotificationRemoved, PushCallback? onAndroidNotificationReceivedInApp, PushCallback? onAndroidNotificationClickedWithNoAction, PushCallback? onIOSChannelOpened, PushCallback? onIOSRegisterDeviceTokenSuccess, PushCallback? onIOSRegisterDeviceTokenFailed}) → void
bindAccount(String account) Future<Map>
绑定账号
bindPhoneNumber(String phone) Future<Map>
绑定手机号码
bindTag(List<String> tags, {int target = kAliyunTargetDevice, String? alias}) Future<Map>
添加标签
checkAndroidPushChannelStatus() Future<Map>
Android 查询推送通道状态
clearNotifications() Future<Map>
清除所有通知
closeAndroidPushLog() Future<Map>
关闭 Android 推送日志
createAndroidChannel(String id, String name, int importance, String description, {String? groupId, bool? allowBubbles, bool? light, int? lightColor, bool? showBadge, String? soundPath, int? soundUsage, int? soundContentType, int? soundFlag, bool? vibration, List<int>? vibrationPatterns}) Future<Map>
创建 Android 平台的NotificationChannel
createAndroidChannelGroup(String id, String name, String desc) Future<Map>
创建通知通道的分组
getApnsDeviceToken() Future<String>
获取 APNs Token
getDeviceId() Future<String>
获取 deviceId
initAndroidThirdPush() Future<Map>
注册厂商通道
initPush({String? appKey, String? appSecret}) Future<Map>
注册推送
isAndroidNotificationEnabled({String? id}) Future<bool>
检查通知状态
isIOSChannelOpened() Future<bool>
iOS 通知通道是否已打开
jumpToAndroidNotificationSettings({String? id}) → void
跳转到通知设置页面
listAlias() Future<Map>
查询绑定别名
listTags({int target = kAliyunTargetDevice}) Future<Map>
查询标签列表
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeAlias(String alias) Future<Map>
移除别名
setAndroidLogLevel(int level) Future<Map>
设置 Android log 的级别
setIOSBadgeNum(int num) Future<Map>
iOS 设置角标数
setNotificationInGroup(bool inGroup) Future<Map>
设置通知分组展示,只支持 Android
setPluginLogEnabled(bool enabled) → void
设置是否开启插件日志
showIOSNoticeWhenForeground(bool enable) Future<Map>
App处于前台时显示通知
syncIOSBadgeNum(int num) Future<Map>
iOS 同步角标数
toString() String
A string representation of this object.
inherited
turnOffAndroidPushChannel() Future<Map>
Android 关闭推送通道
turnOnAndroidPushChannel() Future<Map>
Android 开启推送通道
turnOnIOSDebug() Future<Map>
开启 iOS debug 日志
unbindAccount() Future<Map>
解绑账号
unbindPhoneNumber() Future<Map>
解绑手机号码
unbindTag(List<String> tags, {int target = kAliyunTargetDevice, String? alias}) Future<Map>
移除标签

Operators

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

Static Properties

instance AliyunPushFlutterPlatform
The default instance of AliyunPushFlutterPlatform to use.
getter/setter pair