Zendesk2Chat class

Properties

chatIsOnlineStream Stream<ChatAccountModel>?
Stream is triggered when socket receive new values
no setter
chatSettingsStream Stream<ChatSettingsModel>?
Stream is triggered when socket receive new values
no setter
connectionStatusStream Stream<CONNECTION_STATUS>?
Stream is triggered when socket receive new values
no setter
hashCode int
The hash code for this object.
no setterinherited
providersStream Stream<ChatProviderModel>?
Stream is triggered when socket receive new values
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

connect() Future<void>
Mark the user as connected, Call this method if you did not connect while initializing startChatProviders or when resuming from background state. The user will also stop receiving push notifications for new messages.
disconnect() Future<void>
Disconect the web socket, important to call this to preserve battery power when app goes to background. Usefull when going to background inside the chat screeen. The user will start receiving push notifications for new messages.
dispose() Future<void>
Release and close streams
endChat() Future<void>
Providers only - end the live chat
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerFCMToken(String token) Future<void>
Register FCM Token for android push notifications
sendFile(String path) Future<void>
Providers only - send file
sendMessage(String message) Future<void>
Providers only - send message
sendTyping(bool isTyping) Future<void>
Providers only - update Zendesk panel if user is typing
setVisitorInfo({String name = '', String email = '', String phoneNumber = '', String departmentName = '', List<String> tags = const []}) Future<void>
Set on Native/Custom chat user information
startChatProviders({bool autoConnect = true}) Future<void>
Start chat providers for custom UI handling
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance Zendesk2Chat
final