ChatViewController class

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

isMultithread() Future<bool>
Returns true if chat is synchronized and multithread feature is enabled, otherwise returns false.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
on(String eventName, Function callback) Future<void>
Registers a callback for the given event name. ChatViewEvent class provides constants of all available events names
sendChatAttachment(ChatViewAttachmentData attachment) → void
Sends attachment to the chat. Parameter attachment attachment to be send
sendChatMessage(String message) → void
Sends message to the chat. Parameter message message to be send, max length allowed is 4096 characters
sendChatMessageDraft(String draft) → void
Sends draft message to be show in chat to peer's chat. Parameter draft message to be sent
sendContextualData(String data, bool allMultiThreadStrategy) → void
Set contextual data of the chat. If the function is called when the chat is loaded data will be sent immediately, otherwise they will be sent to the chat once it is loaded. Every function invocation will overwrite the previous contextual data. See ChatViewEvent.chatLoaded to detect if chat is loaded. Parameter data in JSON string format Parameter allMultiThreadStrategy multithread strategy flag, true -> ALL, false -> ACTIVE
setLanguage(String language) → void
Set the language of the chat. Parameter language in locale format e.g.: en-US
setWidgetTheme(String widgetTheme) → void
Set the theme of the Livechat Widget. You can define widget themes in https://portal.infobip.com/apps/livechat/widgets(Live chat widget setup page) in Infobip Portal, section Advanced customization. Please check widget https://www.infobip.com/docs/live-chat/widget-customization for more details.
showThreadsList() → void
Navigates chat from THREAD back to THREAD_LIST destination in multithread chat. It does nothing if widget is not multithread. All multi-thread chat destinations: LOADING, THREAD_LIST, LOADING_THREAD, THREAD, CLOSED_THREAD, SINGLE_MODE_THREAD
toString() String
A string representation of this object.
inherited
unregister(String eventName, Function? callback) Future<void>
Unregisters a callback for the given event name.
unregisterAllHandlers(String eventName) Future<void>
Unregisters all callbacks for the given event name.

Operators

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