SettingsServicePlatform class abstract

Inheritance

Constructors

SettingsServicePlatform()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serviceName String
no setterinherited

Methods

archiveLogs() Future<NIMResult<String>>
打包日志文件,并返回文件路径
clearDirCache(List<NIMDirCacheFileType> fileTypes, int startTime, int endTime) Future<NIMResult<void>>
删除 SDK 指定类型的缓存文件,例如收发图片消息的缩略图,语音消息录音文件等等。Android可用
enableMobilePushWhenPCOnline(bool enable) Future<NIMResult<void>>
设置桌面端(PC/WEB)在线时,移动端是否需要推送
enableNotificationAndroid({required bool enableRegularNotification, required bool enableRevokeMessageNotification}) Future<NIMResult<void>>
配置 Android 消息提醒 仅Android
enablePushServiceAndroid(bool enable) Future<NIMResult<void>>
开启或关闭消息推送;当设置为 false 时,该客户端将接收不到来自云信体系内的推送。 仅android
enablePushShowDetail(bool enable) Future<NIMResult<void>>
设置推送是否显示详情
getPushNoDisturbConfig() Future<NIMResult<NIMPushNoDisturbConfig>>
获取当前免打扰设置
getSizeOfDirCache(List<NIMDirCacheFileType> fileTypes, int startTime, int endTime) Future<NIMResult<int>>
计算 SDK 缓存文件的大小,以字节为单位。例如收发图片消息的缩略图,语音消息录音文件等等。Android可用
handleMethodCall(String method, dynamic arguments) Future
inherited
invokeMethod(String method, {Map<String, dynamic>? arguments}) Future<Map<String, dynamic>>
inherited
isMobilePushEnabledWhenPCOnline() Future<NIMResult<bool>>
查询桌面端(PC/WEB)在线时,移动端推送开关
isPushServiceEnabledAndroid() Future<NIMResult<bool>>
查询当前推送服务开关 仅android
isPushShowDetailEnabled() Future<NIMResult<bool>>
查询推送是否显示详情
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onEvent(String method, dynamic arguments) Future
inherited
registerBadgeCount(int count) Future<NIMResult<void>>
注册自定义云信角标未读数 iOS可用
removeResourceFiles(NIMResourceQueryOption option) Future<NIMResult<int>>
删除缓存的资源文件 iOS可用
searchResourceFiles(NIMResourceQueryOption option) Future<NIMResult<List<NIMCacheQueryResult>>>
搜索缓存的资源文件 iOS可用
setPushNoDisturbConfig(NIMPushNoDisturbConfig config) Future<NIMResult<void>>
设置免打扰配置
toString() String
A string representation of this object.
inherited
updateAPNSTokenIOS(Uint8List token, String? customContentKey) Future<NIMResult<void>>
更新iOS deviceToken 仅iOS
updateNotificationConfigAndroid(NIMStatusBarNotificationConfig config) Future<NIMResult<void>>
更新通知栏设置,仅支持Android平台
uploadLogs({String? chatroomId, String? comment, bool partial = true}) Future<NIMResult<String>>
打包日志文件并上传,返回日志文件的 url 地址

Operators

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

Static Properties

instance SettingsServicePlatform
getter/setter pair