onRoomMessageSendResult method
@detail callback @author hanchenchen.c @brief 调用 sendRoomMessage{@link #RTSRoom#sendRoomMessage} 或 sendRoomBinaryMessage{@link #RTSRoom#sendRoomBinaryMessage} 向房间内群发文本或二进制消息后,消息发送方会收到该消息发送结果回调。 @param msgid 本条消息的 ID。 @param error 消息发送结果,详见 RoomMessageSendResult{@link #RoomMessageSendResult}
Implementation
FutureOr<void> onRoomMessageSendResult(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.android_to_code($p_a
.RoomMessageSendResult.values
.firstWhere((t) => t.$value == error || t.name == error)));
}