MethodChannelAliyunPushFlutter class
An implementation of AliyunPushFlutterPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- AliyunPushFlutterPlatform
- MethodChannelAliyunPushFlutter
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addAlias(
String alias) → Future< Map> -
添加别名
override
-
addMessageReceiver(
{PushCallback? onNotification, PushCallback? onMessage, PushCallback? onNotificationOpened, PushCallback? onNotificationRemoved, PushCallback? onAndroidNotificationReceivedInApp, PushCallback? onAndroidNotificationClickedWithNoAction, PushCallback? onIOSChannelOpened, PushCallback? onIOSRegisterDeviceTokenSuccess, PushCallback? onIOSRegisterDeviceTokenFailed}) → void -
override
-
bindAccount(
String account) → Future< Map> -
绑定账号
override
-
bindPhoneNumber(
String phone) → Future< Map> -
绑定手机号码
override
-
bindTag(
List< String> tags, {int target = kAliyunTargetDevice, String? alias}) → Future<Map> -
添加标签
override
-
checkAndroidPushChannelStatus(
) → Future< Map> -
Android 查询推送通道状态
override
-
clearNotifications(
) → Future< Map> -
清除所有通知
override
-
closeAndroidPushLog(
) → Future< Map> -
关闭 Android 推送日志
override
-
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
override
-
createAndroidChannelGroup(
String id, String name, String desc) → Future< Map> -
创建通知通道的分组
override
-
getApnsDeviceToken(
) → Future< String> -
获取 APNs Token
override
-
getDeviceId(
) → Future< String> -
获取 deviceId
override
-
initAndroidThirdPush(
) → Future< Map> -
注册厂商通道
override
-
initPush(
{String? appKey, String? appSecret}) → Future< Map> -
注册推送
override
-
isAndroidNotificationEnabled(
{String? id}) → Future< bool> -
检查通知状态
override
-
isIOSChannelOpened(
) → Future< bool> -
iOS 通知通道是否已打开
override
-
jumpToAndroidNotificationSettings(
{String? id}) → void -
跳转到通知设置页面
override
-
listAlias(
) → Future< Map> -
查询绑定别名
override
-
listTags(
{int target = kAliyunTargetDevice}) → Future< Map> -
查询标签列表
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeAlias(
String alias) → Future< Map> -
移除别名
override
-
setAndroidLogLevel(
int level) → Future< Map> -
设置 Android log 的级别
override
-
setIOSBadgeNum(
int num) → Future< Map> -
iOS 设置角标数
override
-
setNotificationInGroup(
bool inGroup) → Future< Map> -
设置通知分组展示,只支持 Android
override
-
setPluginLogEnabled(
bool enabled) → void -
设置是否开启插件日志
override
-
showIOSNoticeWhenForeground(
bool enable) → Future< Map> -
App处于前台时显示通知
override
-
syncIOSBadgeNum(
int num) → Future< Map> -
iOS 同步角标数
override
-
toString(
) → String -
A string representation of this object.
inherited
-
turnOffAndroidPushChannel(
) → Future< Map> -
Android 关闭推送通道
override
-
turnOnAndroidPushChannel(
) → Future< Map> -
Android 开启推送通道
override
-
turnOnIOSDebug(
) → Future< Map> -
开启 iOS debug 日志
override
-
unbindAccount(
) → Future< Map> -
解绑账号
override
-
unbindPhoneNumber(
) → Future< Map> -
解绑手机号码
override
-
unbindTag(
List< String> tags, {int target = kAliyunTargetDevice, String? alias}) → Future<Map> -
移除标签
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited