flutter_getui library

Classes

GTMessageModel

Functions

addGeTuiEventHandler({EventHandler? onReceiveDeviceToken, EventHandlerMessageModel? onReceiveMessageData, EventHandlerMessageModel? onNotificationMessageArrived, EventHandlerBool? onReceiveOnlineState, EventHandlerMessageModel? onNotificationMessageClicked, EventHandler? onRegisterVoIpToken, EventHandler? onAppLinkPayload, EventHandlerMap? onReceiveVoIpPayLoad}) → void
消息监听
bindGeTuiAlias(String alias, {String sn = ''}) Future<bool>
绑定 Alias sn 绑定序列码 默认为 ‘’
checkAndroidManifest() Future<bool>
检查集成结果 仅支持Android
getGeTuiClientID() Future<String?>
获取 clientId
getIOSGeTuiLaunchNotification() Future<Map?>
only ios
initGeTui({String? appId, String? appKey, String? appSecret}) Future<bool>
初始化sdk
isAndroidPushStatus() Future<bool>
检测android 推送服务状态
resetIOSGeTuiBadge() Future<bool>
only ios
setGeTuiBadge(int badge) Future<bool>
setGeTuiBadge 支持ios android android 仅支持华为
setGeTuiTag(List<String> tags, {String sn = ''}) Future<int?>
设置Tag sn 序列号 仅支持Android return code = 0 为成功,其他状态🐴 Android ios 成功为0, 失败为 1 android 失败为 1
setIOSGeTuiLocalBadge(int badge) Future<bool>
only ios
startAndroidGeTuiPush() Future<bool>
开启推送 only android
stopAndroidGeTuiPush() Future<bool>
关闭推送 only android
unbindGeTuiAlias(String alias, {String sn = '', bool isSelf = true}) Future<bool>
解绑 Alias alias 别名字符串 sn 绑定序列码 默认为 ‘’ isSelf 是否只对当前cid有效,如果是true,只对当前cid做解绑;如果是false,对所有绑定该别名的cid列表做解绑
voIpRegistrationForIOS() Future<bool>
ios注册 voip 推送服务

Typedefs

EventHandler = void Function(String? res)
EventHandlerBool = void Function(bool? online)
EventHandlerMap = void Function(Map? event)
EventHandlerMessageModel = void Function(GTMessageModel? message)