SettingsService class

Annotations

Constructors

SettingsService()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
onP2PMessageMuteModeChanged Stream<P2PMuteModeChangedResult>
点对点消息免打扰回调
no setter
onTeamMessageMuteModeChanged Stream<TeamMuteModeChangedResult>
群组消息免打扰回调
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

enableNotificationAndroid({required bool enableRegularNotification, required bool enableRevokeMessageNotification}) Future<NIMResult<void>>
配置消息提醒,仅支持 Android 平台,iOS平台请关闭通知权限。 配置 updateNotificationConfigAndroid 才能生效
getConversationMuteStatus(String conversationId) Future<NIMResult<bool>>
获取会话消息免打扰状态 @param conversationId 会话id
getDndConfig() Future<NIMResult<NIMDndConfig>>
读取免打扰与详情显示。web 不支持
getP2PMessageMuteList() Future<NIMResult<List<String>>>
获取点对点消息免打扰列表
getP2PMessageMuteMode(String accountId) Future<NIMResult<NIMP2PMessageMuteMode>>
获取点对点消息免打扰模式
getTeamMessageMuteMode(String teamId, NIMTeamType teamType) Future<NIMResult<NIMTeamMessageMuteMode?>>
获取群消息免打扰模式
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setDndConfig(NIMDndConfig config) Future<NIMResult<void>>
设置Apns免打扰与详情显示
setP2PMessageMuteMode(String accountId, NIMP2PMessageMuteMode muteMode) Future<NIMResult<void>>
设置点对点消息免打扰模式
setPushMobileOnDesktopOnline(bool need) Future<NIMResult<void>>
设置当桌面端在线时,移动端是否需要推送 运行在移动端时, 需要调用该接口
setTeamMessageMuteMode(String teamId, NIMTeamType teamType, NIMTeamMessageMuteMode muteMode) Future<NIMResult<void>>
设置群组消息免打扰模式 @param teamId 群组Id @param teamType 群组类型 @param muteMode 群组消息免打扰模式
toString() String
A string representation of this object.
inherited
updateNotificationConfigAndroid(NIMStatusBarNotificationConfig config) Future<NIMResult<void>>
更新通知栏设置,仅支持Android平台

Operators

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