ChatwootCallbacks class FlutterClientSdk
Chatwoot callback are specified for each created client instance. Methods are triggered when a method satisfying their respective conditions occur.
Constructors
-
ChatwootCallbacks({void onWelcome()?, void onPing()?, void onConfirmedSubscription()?, void onMessageReceived(ChatwootMessage)?, void onMessageSent(ChatwootMessage, String)?, void onMessageDelivered(ChatwootMessage, String)?, void onPersistedMessagesRetrieved(List<
ChatwootMessage> )?, void onMessagesRetrieved(List<ChatwootMessage> )?, void onConversationStartedTyping()?, void onConversationStoppedTyping()?, void onConversationIsOnline()?, void onConversationIsOffline()?, void onError(ChatwootClientException)?})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- onConfirmedSubscription ↔ void Function()?
-
Triggered when a subscription confirmation event/message is received after connecting to
the chatwoot websocket. See ChatwootRepository.listenForEvents
getter/setter pair
- onConversationIsOffline ↔ void Function()?
-
Triggered when a presence update event/message ChatwootEventMessageType.presence_update
is received after connecting to the chatwoot websocket and conversation is offline.
See ChatwootRepository.listenForEvents
getter/setter pair
- onConversationIsOnline ↔ void Function()?
-
Triggered when a presence update event/message ChatwootEventMessageType.presence_update
is received after connecting to the chatwoot websocket and conversation is online. See ChatwootRepository.listenForEvents
getter/setter pair
- onConversationStartedTyping ↔ void Function()?
-
Triggered when a conversation typing on event/message ChatwootEventMessageType.conversation_typing_on
is received after connecting to the chatwoot websocket. See ChatwootRepository.listenForEvents
getter/setter pair
- onConversationStoppedTyping ↔ void Function()?
-
Triggered when a conversation typing off event/message ChatwootEventMessageType.conversation_typing_off
is received after connecting to the chatwoot websocket. See ChatwootRepository.listenForEvents
getter/setter pair
- onError ↔ void Function(ChatwootClientException)?
-
Triggered when any error occurs in chatwoot client's operations with the error
getter/setter pair
- onMessageDelivered ↔ void Function(ChatwootMessage, String)?
-
Triggered when a message created event/message ChatwootEventMessageType.message_created
is received and message belongs to current user after connecting to the chatwoot websocket.
See ChatwootRepository.listenForEvents
getter/setter pair
- onMessageReceived ↔ void Function(ChatwootMessage)?
-
Triggered when a message created event/message ChatwootEventMessageType.message_created
is received and message doesn't belong to current user after connecting to the chatwoot websocket.
See ChatwootRepository.listenForEvents
getter/setter pair
- onMessageSent ↔ void Function(ChatwootMessage, String)?
-
getter/setter pair
-
onMessagesRetrieved
↔ void Function(List<
ChatwootMessage> )? -
Triggered a conversation's messages is successfully retrieved from remote server
getter/setter pair
-
onPersistedMessagesRetrieved
↔ void Function(List<
ChatwootMessage> )? -
Triggered when a conversation's messages persisted on device are successfully retrieved
getter/setter pair
- onPing ↔ void Function()?
-
Triggered when a ping event/message is received after connecting to
the chatwoot websocket. See ChatwootRepository.listenForEvents
getter/setter pair
- onWelcome ↔ void Function()?
-
Triggered when a welcome event/message is received after connecting to
the chatwoot websocket. See ChatwootRepository.listenForEvents
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited