< Flutter UIKit />
UTD Audio Room Kit
سیٹس، ریئل-ٹائم چیٹ اور ماڈریشن کے ساتھ ڈراپ-اِن لائیو آڈیو رومز۔
import 'package:utd_audio_room_kit/utd_audio_room_kit.dart';
UTDAudioRoom(
appId: '<utd-app-id>',
appKey: '<utd-app-key>',
userId: 'user123',
userName: 'John Doe',
roomId: 'room456',
roomOwnerId: 'owner789',
);Drop-in
مکمل UI
0
بیک اینڈ سرورز
EN · AR
بلٹ-اِن i18n
PiP
+ minimize
< utd_audio_room_kit />
اہم خصوصیات
LiveKit اور UTD Stream Engine سے چلنے والے، لائیو آڈیو-روم تجربات کے لیے ایک مکمل، حسبِ ضرورت قابلِ تبدیلی Flutter پیکیج۔ ڈراپ-اِن روم UI کے ساتھ سیٹ مینجمنٹ، بولنے کی درخواست، ممبر فہرست، ریئل-ٹائم چیٹ، میڈیا کنٹرولز، minimize/PiP اور مکمل ہوسٹ/ایڈمن ماڈریشن — اور کسی بیک اینڈ ٹوکن سرور کی ضرورت کے بغیر۔
ڈراپ-اِن آڈیو روم UI — کوئی اضافی کوڈ نہیں
سیٹ مینجمنٹ: لینا، چھوڑنا، تبدیل کرنا، lock، unlock، kick، mute، swap
approve/reject کے ساتھ بولنے-کی-درخواست قطار
ہوسٹ/ایڈمن ایکشنز کے ساتھ ممبر فہرست (mute، kick، invite، ban، promote/demote)
بیچنگ اور ڈی-ڈَپ کے ساتھ ریئل-ٹائم ڈیٹا-چینل چیٹ
بلوٹوتھ کو ترجیح دینے والی روٹنگ کے ساتھ مائیک اور اسپیکر کنٹرولز
درجہ بند ری کنکشن (لائٹ سِنک <15s، فل سِنک <60s)
فلوٹنگ اوورلے اور Android OS Picture-in-Picture میں minimize
تھیم کسٹمائزیشن اور بلٹ-اِن i18n (EN/AR)
مکمل سیکشن کی تبدیلی (ہیڈر، پیغامات، کنٹرولز، بیک گراؤنڈ، سیٹس)
کوئی بیک اینڈ ٹوکن سرور نہیں — appKey پر مبنی ٹوکن فلو
< utd_audio_room_kit />
شروع کریں
انسٹال کریں
flutter pub add utd_audio_room_kitpub.dev پر دیکھیں
سیٹس، ریئل-ٹائم چیٹ اور ماڈریشن کے ساتھ ڈراپ-اِن لائیو آڈیو رومز۔
< utd_audio_room_kit />
API حوالہ
Main widget
The drop-in prebuilt audio-room widget that hosts the full UI and connection lifecycle.
UTDAudioRoomwidgetconst UTDAudioRoom({required String appId, required String appKey, required String userId, required String userName, required String roomId, required String roomOwnerId, Set<String> adminIds, UTDAudioRoomConfig config, List<UTDRoomMode> modes, UTDRoomController? controller, ...})Prebuilt audio-room widget. Mints a token directly from the engine with the publishable appKey (no backend), connects to LiveKit, and renders seats, chat and controls. Self-upgrades admins post-join.
پیرامیٹرز
appIdStringلازمیUTD Stream Engine app ID.
appKeyStringلازمیPublishable app key (no backend); used to mint tokens via X-App-Key. The server secret never ships.
userIdStringلازمیLocal user identity.
userNameStringلازمیLocal user display name.
roomIdStringلازمیRoom name to join.
roomOwnerIdStringلازمیIdentity of the room owner; the owner joins as host.
adminIdsSet<String>ڈیفالٹ = const {}Identities the app treats as admins at join.
adminIdsResolverFuture<Set<String>> Function()?ڈیفالٹ = nullAsync admin-list source; triggers a non-blocking self-upgrade if it lists the local user.
adminIdsNowSet<String> Function()?ڈیفالٹ = nullSync admin-list probe used at token time without waiting.
layoutModeStringڈیفالٹ = '3'Room mode id selecting the seat layout / seat count.
configUTDAudioRoomConfigڈیفالٹ = const UTDAudioRoomConfig()Behavior, theming and custom-widget configuration.
modesList<UTDRoomMode>ڈیفالٹ = const []Custom room modes registered on the controller.
controllerUTDRoomController?ڈیفالٹ = nullOptional externally-owned controller (e.g. when restoring from minimize).
onControllerReadyvoid Function(UTDRoomController)?ڈیفالٹ = nullCalled once the controller is created/attached.
onConnectionChangedvoid Function(bool isConnected)?ڈیفالٹ = nullFired on connect success/failure.
onSeatTapvoid Function(int index, SeatState seat)?ڈیفالٹ = nullCalled when a seat is tapped.
onSeatChangedvoid Function(List<SeatState> seats)?ڈیفالٹ = nullCalled whenever seat state changes.
onConnectErrorvoid Function(Object error, StackTrace)?ڈیفالٹ = nullCalled when the initial connect fails.
Room controller
Top-level controller owning connection, sub-controllers, roles, bans and speaker flows.
UTDRoomControllerconstructorUTDRoomController()Creates the controller and its seat, media, chat, minimize and PiP sub-controllers. Usually created internally by UTDAudioRoom.
initApimethodvoid initApi({String baseUrl, String tokenBaseUrl, String? appId, required String appKey})Initializes the engine and token API clients. Must be called before connect/generateToken. Token issuance and in-room ops use different hosts.
پیرامیٹرز
baseUrlStringڈیفالٹ = UTDApiClient.defaultBaseUrlIn-room engine host for seat/speaker/ban/role calls.
tokenBaseUrlStringڈیفالٹ = UTDApiClient.defaultTokenBaseUrlEdge host used for token generation.
appIdString?ڈیفالٹ = nullEngine app ID.
appKeyStringلازمیPublishable app key sent as X-App-Key for minting.
connectmethodasyncFuture<void> connect({required String url, required String token, int seatCount = 9, bool enableMicOnJoin = false, bool useSpeaker = true, Map<String,String> userAttributes, String? roomName})Connects to the LiveKit room with the given url/token, initializes seats, wires data/role/ban/chat-lock handlers, and optionally enables the mic and speaker.
پیرامیٹرز
urlStringلازمیLiveKit server URL.
tokenStringلازمیLiveKit access token.
seatCountintڈیفالٹ = 9Number of seats to initialize.
enableMicOnJoinboolڈیفالٹ = falsePublish the local mic on connect.
useSpeakerboolڈیفالٹ = truePrefer Bluetooth/loudspeaker output on join.
userAttributesMap<String,String>ڈیفالٹ = const {}Cosmetic LiveKit participant attributes (avatar/frame/etc.).
roomNameString?ڈیفالٹ = nullRoom name used for seat API calls.
واپسی: Future<void>
generateTokenmethodasyncFuture<UTDTokenResponse> generateToken({required String identity, required String roomName, required String roomOwnerId, String role = 'audience', String? name, int? seatCount, String? seatMode, int? hostSeat, String? modeId, ...})Requests a LiveKit token from the engine and applies the returned per-user bearer to the in-room clients. Throws UTDBannedException on a 403 banned response.
پیرامیٹرز
identityStringلازمیUser identity.
roomNameStringلازمیRoom name.
roomOwnerIdStringلازمیRoom owner identity.
typeStringڈیفالٹ = 'audio_room'Room type.
roleStringڈیفالٹ = 'audience'Requested role (host/admin/audience).
nameString?ڈیفالٹ = nullDisplay name.
seatCountint?ڈیفالٹ = nullInitial seat count (host only).
modeIdString?ڈیفالٹ = nullRoom mode id (host only).
واپسی: Future<UTDTokenResponse>
leavemethodasyncFuture<void> leave()Leaves the room: tears down listeners, drains any pending mic publish, disconnects LiveKit, and resets minimize/PiP state.
واپسی: Future<void>
changeRolemethodasyncFuture<UTDRoleChangeResult> changeRole({required String targetIdentity, required String role})Changes a participant's role (owner-only; server returns 403 otherwise). Optimistically caches the result; throws on REST error.
پیرامیٹرز
targetIdentityStringلازمیIdentity whose role changes.
roleStringلازمیNew role (host/admin/guest/audience).
واپسی: Future<UTDRoleChangeResult>
banUsermethodasyncFuture<bool> banUser(String identity, {String? reason, int? durationSeconds, bool global = false})Bans a user. Room-scoped by default; pass global true for a project-wide ban and durationSeconds null for permanent. Returns true on success.
پیرامیٹرز
identityStringلازمیUser to ban.
reasonString?ڈیفالٹ = nullOptional ban reason.
durationSecondsint?ڈیفالٹ = nullBan duration; null = permanent.
globalboolڈیفالٹ = falseTrue for a project-wide ban.
واپسی: Future<bool>
lockCommentsmethodasyncFuture<bool> lockComments()Locks room chat so only host/admin may send (host/admin-only). State is confirmed by the server broadcast, not set optimistically.
واپسی: Future<bool>
requestToSpeakmethodasyncFuture<Map<String,dynamic>?> requestToSpeak()Audience requests to speak (request mode). Returns the API result map, or null on error / when not ready.
واپسی: Future<Map<String,dynamic>?>
inviteToSpeakmethodasyncFuture<Map<String,dynamic>?> inviteToSpeak(String targetIdentity, {int? seatIndex})Host/admin invites a user to speak, optionally targeting a specific seat. Returns the API result map or null.
پیرامیٹرز
targetIdentityStringلازمیIdentity to invite.
seatIndexint?ڈیفالٹ = nullTarget seat the invitee is seated on if accepted.
واپسی: Future<Map<String,dynamic>?>
isConnectedgetterbool get isConnectedTrue when the room connection state is connected.
واپسی: bool
isHostOrAdmingetterbool get isHostOrAdminWhether the local participant's role is host or admin.
واپسی: bool
participantsStreamgetterasyncStream<List<UTDParticipant>> get participantsStreamStream of all room participants, emitting on join/leave/attribute/metadata changes.
واپسی: Stream<List<UTDParticipant>>
roleChangeStreamgetterasyncStream<UTDRoleChangeEvent> get roleChangeStreamStream of role changes for all participants (promotions, demotions, engine auto-corrections).
واپسی: Stream<UTDRoleChangeEvent>
activeSpeakerspropertyfinal ValueNotifier<Set<String>> activeSpeakersReactive set of identities currently speaking, polled from LiveKit every 300ms.
واپسی: ValueNotifier<Set<String>>
commentsLockedpropertyfinal ValueNotifier<bool> commentsLockedReactive whether room chat is currently locked (server-driven; never set optimistically).
واپسی: ValueNotifier<bool>
onBannedcallbackvoid Function(UTDBanNotice notice)? onBannedFired once when the local user is banned from any source (data message, removal, or token 403). Wired internally by UTDAudioRoom.
واپسی: void Function(UTDBanNotice)?
disposemethodvoid dispose()Releases all resources: timers, subscriptions, notifiers, sub-controllers and API clients.
Seat & stage control
Seat state management; all mutations go through the REST API and apply from server _seat_update messages.
UTDSeatControllerclassUTDSeatController(UTDRoomManager roomManager)Manages reactive seat state. Mutations call the REST API; local state updates only from _seat_update data messages or room _seats metadata.
takeSeatmethodasyncFuture<bool> takeSeat(int index, String userId)Requests microphone (and Bluetooth on Android) permissions then takes the seat at index via the API. State arrives via _seat_update.
پیرامیٹرز
indexintلازمیTarget seat index.
userIdStringلازمیIdentity taking the seat.
واپسی: Future<bool>
leaveSeatmethodasyncFuture<bool> leaveSeat(String userId)Leaves the user's current seat via the API.
پیرامیٹرز
userIdStringلازمیIdentity leaving the seat.
واپسی: Future<bool>
moveSeatmethodasyncFuture<bool> moveSeat(String userId, int targetSeat)Atomically moves the user to another seat via the API.
پیرامیٹرز
userIdStringلازمیIdentity to move.
targetSeatintلازمیDestination seat index.
واپسی: Future<bool>
lockSeatmethodasyncFuture<bool> lockSeat(int index, {required String identity})Admin locks the seat at index (host/admin). State arrives via _seat_update.
پیرامیٹرز
indexintلازمیSeat to lock.
identityStringلازمیActing host/admin identity.
واپسی: Future<bool>
kickFromSeatmethodasyncFuture<bool> kickFromSeat(int index, {required String identity})Removes the occupant from the seat at index (host/admin only).
پیرامیٹرز
indexintلازمیSeat to vacate.
identityStringلازمیActing host/admin identity.
واپسی: Future<bool>
setupSeatsmethodasyncFuture<bool> setupSeats({required String identity, required int seatCount, required String seatMode, String? modeId})Changes seat configuration mid-room (count/mode/modeId) (host/admin only).
پیرامیٹرز
identityStringلازمیActing host/admin identity.
seatCountintلازمیNew seat count.
seatModeStringلازمیNew seat mode ('free'/'request').
modeIdString?ڈیفالٹ = nullNew room mode id.
واپسی: Future<bool>
seatspropertyfinal ValueNotifier<List<SeatState>> seatsReactive list of all seat states.
واپسی: ValueNotifier<List<SeatState>>
pendingRequestspropertyfinal ValueNotifier<List<SpeakerRequest>> pendingRequestsReactive list of pending speaker requests (for host/admin UI).
واپسی: ValueNotifier<List<SpeakerRequest>>
getSeatIndexByUserIdmethodint getSeatIndexByUserId(String userId)Returns the seat index occupied by a user, or -1 if not seated.
پیرامیٹرز
userIdStringلازمیIdentity to look up.
واپسی: int
isSeatAvailablemethodbool isSeatAvailable(int index, {String? userId})Whether the seat at index is empty, unlocked and not reserved for someone else.
پیرامیٹرز
indexintلازمیSeat index to test.
userIdString?ڈیفالٹ = nullUser to evaluate reservations against.
واپسی: bool
Media control
Mic, camera, speaker and Bluetooth-routing controls, kept in sync with server/host-side mutes.
UTDMediaControllerclassUTDMediaController(UTDRoomManager roomManager)Controls mic, camera and speaker state and listens to LiveKit mute/permission events to keep reactive state authoritative.
setMicrophoneEnabledmethodasyncFuture<void> setMicrophoneEnabled(bool enabled)Enables/disables the local mic. Refuses to publish on a non-connected room to avoid the addTransceiver-on-disposed-track crash.
پیرامیٹرز
enabledboolلازمیTarget mic state.
واپسی: Future<void>
toggleMicrophonemethodasyncFuture<void> toggleMicrophone()Toggles the local microphone on/off.
واپسی: Future<void>
applyBluetoothAudioRoutingmethodasyncFuture<void> applyBluetoothAudioRouting()Re-applies the Android communication audio config with forceHandleAudioRouting so Bluetooth routing works after connect/publish; iOS uses the AVAudioSession path.
واپسی: Future<void>
setSpeakerOnmethodasyncFuture<void> setSpeakerOn(bool on)Routes audio to the loudspeaker (true) or earpiece (false).
پیرامیٹرز
onboolلازمیSpeakerphone on/off.
واپسی: Future<void>
muteAllRemoteAudiomethodvoid muteAllRemoteAudio(bool mute)Mutes/unmutes playback of all remote participants' audio (and enforces it on late-subscribed tracks).
پیرامیٹرز
muteboolلازمیWhether to mute remote audio.
isMicEnabledpropertyfinal ValueNotifier<bool> isMicEnabledReactive local mic state, kept in sync with LiveKit track mute/unmute events.
واپسی: ValueNotifier<bool>
canPublishpropertyfinal ValueNotifier<bool> canPublishReactive whether the local participant may publish mic/camera; flips false on demotion.
واپسی: ValueNotifier<bool>
Chat
Room chat send/receive with comment-lock gating and a bounded message buffer.
UTDChatControllerclassUTDChatController(UTDRoomManager roomManager)Sends and receives room chat over the data channel, enforcing the comment-lock gate and capping retained messages at 300.
sendMessagemethodasyncFuture<void> sendMessage(String text, {Map<String,dynamic>? userData})Sends a chat message (trimmed, non-empty). Refused when comments are locked and the local user is not host/admin.
پیرامیٹرز
textStringلازمیMessage body.
userDataMap<String,dynamic>?ڈیفالٹ = nullOptional extra payload attached to the message.
واپسی: Future<void>
addDisplayMessagemethodvoid addDisplayMessage(UTDChatMessage message)Appends a message to the local list without sending it (used for system lines).
پیرامیٹرز
messageUTDChatMessageلازمیMessage to display locally.
clearMessagesmethodvoid clearMessages()Clears the local message list.
messagespropertyfinal ValueNotifier<List<UTDChatMessage>> messagesReactive list of chat messages (bounded to the most recent 300).
واپسی: ValueNotifier<List<UTDChatMessage>>
Configuration & theming
Behavior config, color tokens, localized strings and minimize/PiP options.
UTDAudioRoomConfigconstructorconst UTDAudioRoomConfig({bool showControlsBar = true, bool turnOnMicrophoneWhenJoining = false, bool useSpeakerWhenJoining = true, int hostSeatIndex = 0, UTDRoomTheme theme, UTDRoomStrings? strings, bool enableMinimize = true, Widget? headerWidget, ...})Configures room behavior, theme, strings and custom section/seat builders. Replaces the prebuilt config.
پیرامیٹرز
showControlsBarboolڈیفالٹ = trueShow the default controls bar.
showSeatNamesboolڈیفالٹ = trueShow occupant names under seats.
enableMinimizeboolڈیفالٹ = trueAllow minimizing the room to a floating overlay.
turnOnMicrophoneWhenJoiningboolڈیفالٹ = falsePublish the mic on join.
useSpeakerWhenJoiningboolڈیفالٹ = truePrefer speaker/Bluetooth output on join.
hostSeatIndexintڈیفالٹ = 0Seat index reserved for the host.
themeUTDRoomThemeڈیفالٹ = const UTDRoomTheme()Color tokens for the default UI.
stringsUTDRoomStrings?ڈیفالٹ = nullLocalized strings; null = English defaults.
autoHostMicboolڈیفالٹ = trueAuto-enable the host's mic even if join-mic is false.
autoSeatHostboolڈیفالٹ = trueAuto-seat the host on hostSeatIndex if empty.
headerWidgetWidget?ڈیفالٹ = nullCustom header replacing the default.
seatBuilderWidget Function(SeatState, double)?ڈیفالٹ = nullCustom builder for a seat slot.
avatarBuilderWidget Function(String,double,Map<String,String>,bool,int,String)?ڈیفالٹ = nullCustom occupant avatar builder.
userInRoomAttributesMap<String,String>ڈیفالٹ = const {}Cosmetic attributes published to other participants.
UTDAudioRoomConfig.hostconstructorfactory UTDAudioRoomConfig.host()Factory preset for a host (microphone on when joining).
resolveStringsmethodUTDRoomStrings resolveStrings()Returns the configured strings or the English defaults.
واپسی: UTDRoomStrings
UTDRoomThemeconstructorconst UTDRoomTheme({Color background, Color surface, Color onSurface, Color primary, Color danger, Color seatRingSpeaking, Color badgeHost, Color badgeAdmin, Color badgeGuest, Color sheetBackground, Color bubbleBackground, ...})Color tokens for the built-in default UI. Every field has a dark-room default, so const UTDRoomTheme() is a complete theme.
پیرامیٹرز
backgroundColorڈیفالٹ = Color(0xFF14121C)Full-screen room background.
primaryColorڈیفالٹ = Color(0xFF6C5CE7)Accent / call-to-action color.
dangerColorڈیفالٹ = Color(0xFFE74C3C)Destructive color (leave/kick/ban).
seatRingSpeakingColorڈیفالٹ = Color(0xFF2ECC71)Ring around an actively-speaking seat.
badgeHostColorڈیفالٹ = Color(0xFFFFA726)Host role badge color.
badgeAdminColorڈیفالٹ = Color(0xFF448AFF)Admin role badge color.
copyWithmethodUTDRoomTheme copyWith({Color? background, Color? primary, Color? danger, ...})Returns a copy of the theme overriding only the supplied color tokens.
واپسی: UTDRoomTheme
UTDRoomStrings.enconstructorfactory UTDRoomStrings.en()English defaults for all built-in UI labels (seat actions, requests, host panels, comment-lock, templated lines).
UTDRoomStrings.arconstructorfactory UTDRoomStrings.ar()Arabic defaults for all built-in UI labels.
UTDMinimizeConfigconstructorconst UTDMinimizeConfig({VoidCallback? onClose, MiniOverlayBuilder? overlayBuilder, double overlayWidth = 120, double overlayHeight = 120, bool enableOSPip = false, int pipAspectWidth = 1, int pipAspectHeight = 1, ...})Configures the minimize floating overlay and optional Android OS-level Picture-in-Picture (enableOSPip).
پیرامیٹرز
onCloseVoidCallback?ڈیفالٹ = nullCalled when the room is closed from the overlay.
overlayBuilderMiniOverlayBuilder?ڈیفالٹ = nullCustom floating-overlay builder.
enableOSPipboolڈیفالٹ = falseEnable Android 12+ system PiP in addition to the overlay.
pipAspectWidthintڈیفالٹ = 1PiP aspect ratio numerator.
pipAspectHeightintڈیفالٹ = 1PiP aspect ratio denominator.
Models & enums
Data models for seats, room modes, chat and connection state.
SeatStateclassconst SeatState({required int index, String? occupantUserId, bool isLocked = false, bool isMuted = false, String? reservedFor, Map<String,String> attributes})Immutable (Equatable) state of a single seat: index, occupant, lock/mute flags, reservation and occupant attributes.
پیرامیٹرز
indexintلازمیSeat index (0 = host seat).
occupantUserIdString?ڈیفالٹ = nullOccupant identity; null = empty.
isLockedboolڈیفالٹ = falseWhether the seat is admin-locked.
isMutedboolڈیفالٹ = falseWhether the occupant's mic is muted.
reservedForString?ڈیفالٹ = nullIdentity this seat is reserved for.
attributesMap<String,String>ڈیفالٹ = const {}Occupant cosmetic attributes (avatar, frame, etc.).
SpeakerRequestclassconst SpeakerRequest({required int id, required String identity, String? createdAt})A pending request to speak: id, requester identity and createdAt timestamp.
پیرامیٹرز
idintلازمیRequest id.
identityStringلازمیRequesting identity.
createdAtString?ڈیفالٹ = nullCreation timestamp.
RoomSeatStateclassconst RoomSeatState({required int count, required String mode, String? modeId, required List<SeatState> seats, required List<SpeakerRequest> requests})Full seat snapshot from the backend _seats namespace: count, mode, modeId, seats and pending requests.
پیرامیٹرز
countintلازمیSeat count.
modeStringلازمیSeat mode ('free'/'request').
modeIdString?ڈیفالٹ = nullRoom mode id.
seatsList<SeatState>لازمیPer-seat states.
requestsList<SpeakerRequest>لازمیPending speaker requests.
UTDRoomModeclassconst UTDRoomMode({required String id, required int seatCount, required List<List<int>> rows, double? seatSize, UTDSeatContainerBuilder? containerBuilder, UTDBackgroundBuilder? backgroundBuilder, String? displayName})Defines a seat layout mode: id, seat count, row arrangement and optional custom container/background builders. Identity is its id.
پیرامیٹرز
idStringلازمیUnique mode id (e.g. '3').
seatCountintلازمیNumber of seats.
rowsList<List<int>>لازمیSeat-index layout per row.
seatSizedouble?ڈیفالٹ = nullExplicit seat size override.
containerBuilderUTDSeatContainerBuilder?ڈیفالٹ = nullCustom seat-grid container builder.
backgroundBuilderUTDBackgroundBuilder?ڈیفالٹ = nullMode-specific background builder.
computeSeatSizemethoddouble computeSeatSize(double screenWidth)Single source of truth for the seat slot size in logical px, scaled sub-linearly (sqrt) with screen width and clamped to 52–120.
پیرامیٹرز
screenWidthdoubleلازمیAvailable screen width.
واپسی: double
UTDRoomMode.defaultModefieldstatic const UTDRoomMode defaultModeBuilt-in default mode: id '3', 9 seats in a 1-4-4 layout.
واپسی: UTDRoomMode
UTDChatMessageclassUTDChatMessage({required String senderUserId, required String senderName, required String text, required DateTime timestamp, Map<String,dynamic> userData, String? messageID})A chat message with sender, text, timestamp, arbitrary userData and an auto-generated messageID. JSON-serializable.
پیرامیٹرز
senderUserIdStringلازمیSender identity.
senderNameStringلازمیSender display name.
textStringلازمیMessage body.
timestampDateTimeلازمیMessage time.
userDataMap<String,dynamic>ڈیفالٹ = const {}Extra payload (e.g. system-line markers).
messageIDString?ڈیفالٹ = nullMessage id; auto-generated when omitted.
UTDConnectionStateenumenum UTDConnectionState { disconnected, connecting, connected, reconnecting, error }Room connection state: disconnected, connecting, connected, reconnecting, error.
واپسی: UTDConnectionState
UTD کے ساتھ تعمیر کے لیے تیار ہیں؟
اپنا اکاؤنٹ بنائیں، اپنے ماسٹر والٹ کو فنڈ کریں، اور جن سروسز کی ضرورت ہے انہیں آن کریں۔