rtcRoom$onRoomMessageSendResult$error method
FutureOr<void>
rtcRoom$onRoomMessageSendResult$error(
- dynamic rtcRoom,
- dynamic msgid,
- dynamic error
override
@detail callback @author hanchenchen.c @brief Receives this callback after sending a text message or a binary message to a room with sendRoomMessage:{@link #ByteRTCRoom#sendRoomMessage} or sendRoomBinaryMessage:{@link #ByteRTCRoom#sendRoomBinaryMessage}. @param rtcRoom ByteRTCRoom object. @param msgid The ID of this message. @param error Message sending results. See ByteRTCRoomMessageSendResult{@link #ByteRTCRoomMessageSendResult} @note - You should call sendRoomMessage:{@link #ByteRTCRoom#sendRoomMessage} Send a mass text message to the room - You should call sendRoomBinaryMessage:{@link #ByteRTCRoom#sendRoomBinaryMessage} Send a mass binary message to the room
Implementation
FutureOr<void> rtcRoom$onRoomMessageSendResult$error(
dynamic rtcRoom, dynamic msgid, dynamic error) async {
if ($instance == null || $instance is! IRTCRoomEventHandler) {
return;
}
return ($instance as IRTCRoomEventHandler).onRoomMessageSendResult?.call(
int.tryParse(msgid.toString()) ?? 0,
t_RoomMessageSendResult.ios_to_code($p_i
.ByteRTCRoomMessageSendResult.values
.firstWhere((t) => t.$value == error || t.name == error)));
}