clearChannelAttributes method

Future<void> clearChannelAttributes(
  1. String channelId,
  2. bool enableNotificationToChannelMembers
)

Clears all attributes of the channel.

Implementation

Future<void> clearChannelAttributes(
    String channelId, bool enableNotificationToChannelMembers) async {
  final res = await _callNative("clearChannelAttributes", {
    "channelId": channelId,
    "enableNotificationToChannelMembers": enableNotificationToChannelMembers,
  });
  if (res["errorCode"] != 0)
    throw AgoraRtmClientException(
        "clearChannelAttributes failed errorCode:${res['errorCode']}",
        res['errorCode']);
}