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.
durationThe mute duration (unit: millisecond). If the duration is set to 0, the corresponding member will be removed from the temporary mute list.memberOptionThe request parameters including the chatroom ID, account ID, and the optional extension field.needNotifySpecify 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,
);
}