onUserMessageReceived property

FutureOr<void> Function(long msgid, String uid, String message)? onUserMessageReceived
getter/setter pair

@platform android @detail callback @brief Receive this callback when you receive a peer-to-peer text message from another user in the room via sendUserMessage{@link #RTSRoom#sendUserMessage}. @param uid The user ID of the sender of the message. @param message The content of the received text message.

Implementation

FutureOr<void> Function(long msgid, String uid, String message)?
    onUserMessageReceived;