DOOCallbacks class FlutterClientSdk
DOO callback are specified for each created client instance. Methods are triggered when a method satisfying their respective conditions occur.
Constructors
-
DOOCallbacks({void onWelcome()?, void onPing()?, void onConfirmedSubscription()?, void onMessageReceived(DOOMessage)?, void onMessageSent(DOOMessage, String)?, void onMessageDelivered(DOOMessage, String)?, void onMessageUpdated(DOOMessage)?, void onPersistedMessagesRetrieved(List<
DOOMessage> )?, void onMessagesRetrieved(List<DOOMessage> )?, void onConversationStartedTyping()?, void onConversationStoppedTyping()?, void onConversationIsOnline()?, void onConversationIsOffline()?, void onConversationResolved()?, void onError(DOOClientException)?})
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 DOO websocket. See DOORepository.listenForEvents
getter/setter pair
- onConversationIsOffline ↔ void Function()?
-
Triggered when a presence update event/message DOOEventMessageType.presence_update
is received after connecting to the DOO websocket and conversation is offline.
See DOORepository.listenForEvents
getter/setter pair
- onConversationIsOnline ↔ void Function()?
-
Triggered when a presence update event/message DOOEventMessageType.presence_update
is received after connecting to the DOO websocket and conversation is online. See DOORepository.listenForEvents
getter/setter pair
- onConversationResolved ↔ void Function()?
-
Triggered when an agent resolves the current conversation
getter/setter pair
- onConversationStartedTyping ↔ void Function()?
-
Triggered when a conversation typing on event/message DOOEventMessageType.conversation_typing_on
is received after connecting to the DOO websocket. See DOORepository.listenForEvents
getter/setter pair
- onConversationStoppedTyping ↔ void Function()?
-
Triggered when a conversation typing off event/message DOOEventMessageType.conversation_typing_off
is received after connecting to the DOO websocket. See DOORepository.listenForEvents
getter/setter pair
- onError ↔ void Function(DOOClientException)?
-
Triggered when any error occurs in DOO client's operations with the error
getter/setter pair
- onMessageDelivered ↔ void Function(DOOMessage, String)?
-
Triggered when a message created event/message DOOEventMessageType.message_created
is received and message belongs to current user after connecting to the DOO websocket.
See DOORepository.listenForEvents
getter/setter pair
- onMessageReceived ↔ void Function(DOOMessage)?
-
Triggered when a message created event/message DOOEventMessageType.message_created
is received and message doesn't belong to current user after connecting to the DOO websocket.
See DOORepository.listenForEvents
getter/setter pair
- onMessageSent ↔ void Function(DOOMessage, String)?
-
getter/setter pair
-
onMessagesRetrieved
↔ void Function(List<
DOOMessage> )? -
Triggered when a conversation's messages is successfully retrieved from remote server
getter/setter pair
- onMessageUpdated ↔ void Function(DOOMessage)?
-
Triggered when a message created event/message DOOEventMessageType.message_updated
is received after connecting to the DOO websocket.
See DOORepository.listenForEvents
getter/setter pair
-
onPersistedMessagesRetrieved
↔ void Function(List<
DOOMessage> )? -
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 DOO websocket. See DOORepository.listenForEvents
getter/setter pair
- onWelcome ↔ void Function()?
-
Triggered when a welcome event/message is received after connecting to
the DOO websocket. See DOORepository.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