< 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 — কোনো অতিরিক্ত কোড নেই
সিট ম্যানেজমেন্ট: নেওয়া, ছাড়া, পরিবর্তন, লক, আনলক, kick, mute, swap
অ্যাপ্রুভ/রিজেক্ট সহ কথা-বলার-রিকোয়েস্ট কিউ
হোস্ট/অ্যাডমিন অ্যাকশন সহ মেম্বার লিস্ট (mute, kick, ইনভাইট, ban, প্রমোট/ডিমোট)
ব্যাচিং ও ডিডুপ সহ রিয়েল-টাইম ডেটা-চ্যানেল চ্যাট
ব্লুটুথ-অগ্রাধিকার রাউটিং সহ মাইক ও স্পিকার কন্ট্রোল
স্তরভিত্তিক রিকানেকশন (লাইট সিঙ্ক <15s, ফুল সিঙ্ক <60s)
ফ্লোটিং ওভারলে ও Android OS Picture-in-Picture-এ minimize
থিম কাস্টমাইজেশন ও বিল্ট-ইন i18n (EN/AR)
পূর্ণ সেকশন রিপ্লেসমেন্ট (হেডার, মেসেজ, কন্ট্রোল, ব্যাকগ্রাউন্ড, সিট)
কোনো ব্যাকএন্ড টোকেন সার্ভার নেই — appKey-ভিত্তিক টোকেন ফ্লো
< utd_audio_room_kit />
শুরু করুন
ইনস্টল করুন
flutter pub add utd_audio_room_kit< 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 দিয়ে গড়তে প্রস্তুত?
আপনার অ্যাকাউন্ট তৈরি করুন, মাস্টার ওয়ালেট ফান্ড করুন, এবং প্রয়োজনীয় সার্ভিসগুলো চালু করুন।