onTypingEventPrecondition
open override fun onTypingEventPrecondition(eventType: String, channelType: String, channelId: String, extraData: Map<Any, Any>, eventTime: Date): Result<Unit>
Runs this precondition before ChatClient.keystroke and ChatClient.stopTyping request is invoked.
Return
Result having Unit if precondition passes otherwise Error describing what went wrong.
Parameters
eventType
Type of the event that can be one of the EventType.TYPING_START or EventType.TYPING_STOP etc.
channelType
Type of the channel in which the event is sent.
channelId
Id of the channel in which the event is sent.
extraData
Any extra data such as parent id.
eventTime
Date object as the time of this event.