rtcRoom$onRoomMessageSendResult$error method
FutureOr<void>
rtcRoom$onRoomMessageSendResult$error(
- dynamic rtcRoom,
- dynamic msgid,
- dynamic error
override
@detail callback @author hanchenchen.c @brief 调用 sendRoomMessage:{@link #ByteRTCRoom#sendRoomMessage} 或 sendRoomBinaryMessage:{@link #ByteRTCRoom#sendRoomBinaryMessage} 向房间内群发文本或二进制消息后,消息发送方会收到该消息发送结果回调。 @param rtcRoom ByteRTCRoom 对象。 @param msgid 本条消息的 ID。 @param error 消息发送结果,详见 ByteRTCRoomMessageSendResult{@link #ByteRTCRoomMessageSendResult}
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)));
}