markChatroomMemberTempMuted method Null safety
- {required int duration,
- required NIMChatroomMemberOptions options,
- bool needNotify = false}
Add a member to the temporary mute list or remove a member from it.
duration
The mute duration (unit: millisecond). If the duration is set to 0, the corresponding member will be removed from the temporary mute list.memberOption
The request parameters including the chatroom ID, account ID, and the optional extension field.needNotify
Specify whether to send a broadcast notification on the updates of the temporary mute list; true: send, false: not not send.
Implementation
Future<NIMResult<void>> markChatroomMemberTempMuted({
required int duration,
required NIMChatroomMemberOptions options,
bool needNotify = false,
}) {
return _platform.markChatroomMemberTempMuted(
duration: duration,
options: options,
needNotify: needNotify,
);
}