SessionHandler

A handler required on refreshing the session key on expiration. This should be added by SendbirdChat.setSessionHandler before the connection by SendbirdChat.connect.

Since

3.0.150

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
abstract fun onSessionClosed()

Called when:

Link copied to clipboard
open fun onSessionError(sendbirdException: SendbirdException)

Called when the SDK runs into an error while refreshing the session key.

Link copied to clipboard

Called after SDK successfully refreshes the session key.

Link copied to clipboard
abstract fun onSessionTokenRequired(sessionTokenRequester: SessionTokenRequester)

App needs to fetch a new token and pass on the new token to SDK via SessionTokenRequester.onSuccess, or SessionTokenRequester.onFail if error has occurred during the fetch.