onUserMessageSendResult method
@detail callback @author hanchenchen.c @brief After sending a point-to-point text or point-to-point binary message to a single user in the room, the message sender will receive a callback with the result of the message. @param msgid The ID of this message. @param error Text or binary message sending results. See UserMessageSendResult{@link #UserMessageSendResult} @note Call sendUserMessage{@link #RTSRoom#sendUserMessage} or sendUserBinaryMessage{@link #RTSRoom#sendUserBinaryMessage} interface to receive this callback.
Implementation
FutureOr<void> onUserMessageSendResult(dynamic msgid, dynamic error) async {
if ($instance == null || $instance is! IRTCRoomEventHandler) {
return;
}
return ($instance as IRTCRoomEventHandler).onUserMessageSendResult?.call(
int.tryParse(msgid.toString()) ?? 0,
t_UserMessageSendResult.android_to_code($p_a
.UserMessageSendResult.values
.firstWhere((t) => t.$value == error || t.name == error)));
}