onRoomMessageSendResult method
@detail callback @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! IRTSRoomEventHandler) {
return;
}
return ($instance as IRTSRoomEventHandler).onRoomMessageSendResult?.call(
int.tryParse(msgid.toString()) ?? 0,
int.tryParse(error.toString()) ?? 0);
}