androidchatsdk / Notable Classes / EventInterface

EventInterface

interface EventInterface

EventInterface is a callback interface that will be invoked by Gladly’s SDK when various events are triggered. General events (See GladAppEvent) are propagated to onEvent, errors are propagated to onError, and messages are directed to onMessageReceived.

Functions

Name Summary
onError abstract fun onError(error:GladAppError):Unit
Indicates an error occurred.
onEvent abstract fun onEvent(event:GladAppEvent):Unit
Indicates an event occurred. See GladAppEvent for all events.
onMessageReceived abstract fun onMessageReceived(text:String):Unit
Indicates a message was received or sent.