androidchatsdk / Notable Classes / EventInterface


interface EventInterface

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


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