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):UnitIndicates an error occurred. |
| onEvent | abstract fun onEvent(event:GladAppEvent):UnitIndicates an event occurred. See GladAppEvent for all events. |
| onMessageReceived | abstract fun onMessageReceived(text:String):UnitIndicates a message was received or sent. |