FlGeTui class Null safety

Constructors

FlGeTui()
factory

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

addEventHandler({EventHandler? onReceiveDeviceToken, EventHandlerMessageModel? onReceiveMessageData, EventHandlerMessageModel? onNotificationMessageArrived, EventHandlerBool? onReceiveOnlineState, EventHandlerMessageModel? onNotificationMessageClicked, EventHandler? onRegisterVoIpToken, EventHandler? onAppLinkPayload, EventHandlerMap? onReceiveVoIpPayLoad, EventHandlerGTResultModel? onSetTagResult, EventHandlerGTResultModel? onBindAliasResult, EventHandlerGTResultModel? onUnBindAliasResult}) → void
消息监听
bindAlias(String alias, String sn) Future<bool>
绑定 Alias sn 绑定序列码 默认为 '' 绑定结果请调用 addEventHandler;
checkManifestWithAndroid() Future<bool>
检查集成结果 仅支持Android
checkNotificationsEnabledWithAndroid() Future<bool>
检测android 是否开启通知权限
clearAllNotificationForNotificationBarWithIOS() Future<bool>
only ios 清空下拉通知栏全部通知,并将角标置“0”,不显示角标
destroyWithIOS() Future<bool>
only ios 销毁SDK,并且释放资源
getClientID() Future<String?>
获取 clientId
getLaunchNotificationWithIOS() Future<Map?>
only ios
getPushStatusWithAndroid() Future<bool>
检测android 推送服务状态
init({String? appId, String? appKey, String? appSecret}) Future<bool>
初始化sdk
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
openNotificationWithAndroid() Future<bool>
android 打开通知权限页面
resetBadgeWithIOS() Future<bool>
only ios
runBackgroundEnableWithIOS(bool enable) Future<bool>
only ios 是否允许SDK 后台运行(默认值:NO) 备注:可以未启动SDK就调用该方法 支持当APP进入后台后,个推是否运行,YES.允许 注意:开启后台运行时,需同时开启Signing & Capabilities > Background Modes > Auido, Airplay and Picture in Picture 才能保持长期后台在线,该功能会和音乐播放冲突,使用时请注意。 本方法有缓存,如果要关闭后台运行,需要调用GeTuiSdk runBackgroundEnable:NO
setBadge(int badge, {bool badgeWithIOSIcon = true}) Future<bool>
setBadge 支持ios android android 仅支持华为 vivo oppo
setTag(List<String> tags, String sn) Future<bool>
设置Tag sn:用户自定义的序列号,用来唯一标识该动作 设置结果请调用 addEventHandler;
startPush() Future<bool>
开启推送
stopPush() Future<bool>
关闭推送
toString() String
A string representation of this object.
inherited
unbindAlias(String alias, String sn, {bool isSelf = true}) Future<bool>
解绑 Alias alias 别名字符串 sn 绑定序列码 默认为 '' isSelf 是否只对当前cid有效,如果是true,只对当前cid做解绑;如果是false,对所有绑定该别名的cid列表做解绑 解绑结果请调用 addEventHandler;
voIpRegistrationForIOS() Future<bool>
ios注册 voip 推送服务

Operators

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