changeUltraGroupDefaultNotificationLevel method
Future<int>
changeUltraGroupDefaultNotificationLevel(
- String targetId,
- RCIMIWPushNotificationLevel level, {
- IRCIMIWChangeUltraGroupDefaultNotificationLevelCallback? callback,
ZH
设置超级群的默认消息状态 一般由管理员设置的接口,针对超级群的所有群成员生效,针对超级群下所有频道生效,优先级较低。如果群成员自己超级群的免打扰级别,那么以群成员自己设置的为准。
targetId会话 IDlevel消息通知级别callback事件回调。SDK 从 5.3.1 版本开始支持 callback 方式回调。从 5.4.0 版本废弃该接口的其他回调方式,预计将在 6.x 版本删除此其他回调方式。如果传入了 callback 参数,仅触发 callback 回调。返回值当次接口操作的状态码。0 代表调用成功 具体结果需要实现接口回调,非 0 代表当前接口调用操作失败,不会触发接口回调,详细错误参考错误码接口回调onUltraGroupDefaultNotificationLevelChanged
EN
Set the default message status for ultra groups This interface is typically used by administrators and applies to all members of the ultra group and all channels under the ultra group, with a lower priority. If a group member sets their own Do Not Disturb level for the ultra group, the member's setting takes precedence.
targetIdThe conversation IDlevelThe message notification levelcallbackThe event callback. Starting from SDK version 5.3.1, callback method is supported. Other callback methods for this interface are deprecated as of version 5.4.0 and are expected to be removed in the 6.x version. If the callback parameter is provided, only the callback method will be triggered.返回值The status code of the current operation. 0 indicates a successful call, and specific results need to be implemented via the interface callback. Non-zero values indicate a failure in the current operation, and no interface callback will be triggered. Refer to the error codes for detailed error information.接口回调onUltraGroupDefaultNotificationLevelChanged
Implementation
Future<int> changeUltraGroupDefaultNotificationLevel(
String targetId,
RCIMIWPushNotificationLevel level, {
IRCIMIWChangeUltraGroupDefaultNotificationLevelCallback? callback,
}) async {
return RCIMWrapperPlatform.instance.changeUltraGroupDefaultNotificationLevel(targetId, level, callback: callback);
}