LiveTalkSdk class

Constructors

LiveTalkSdk({required String domainPbx})

Properties

domainPbx String
final
eventStream Stream<LiveTalkEventEntity>
no setter
fileUrl String
Base URL for file/media assets served from CDN.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uploadFileStream Stream<Map<String, dynamic>>
no setter

Methods

actionOnMessage({required String content, required String id, required String action}) Future<bool>
createRoom({required String phone, required String fullName, required String uuid, String domain = 'default', bool autoExpired = false, String? fcm, String? projectId}) Future<String?>
Creates a chat room (V2 API). uuid should be a stable unique identifier for this guest session. domain defaults to 'default' as per V2 API spec. fcm FCM device token for push notifications. projectId optional project ID for routing. autoExpired whether the room auto-expires when inactive.
disconnect() → void
forceReconnectSocket() Future<void>
getCurrentRoom() Future<LiveTalkRoomEntity?>
getMessageHistory({required int page, int size = 15}) Future<List<LiveTalkMessageEntity>>
logout(String uuid) Future<bool>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeMessage({required String id}) Future<bool>
sendMessage(LiveTalkSendingMessage message) Future<Map<String, dynamic>?>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

shareInstance LiveTalkSdk
no setter