SessionHandler class

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

Constructors

SessionHandler()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onAccessTokenRequired(AccessTokenRequester accessTokenRequester) → void
App needs to fetch a new token and pass on the new token to SDK via AccessTokenRequester.onSuccess, or AccessTokenRequester.onFail if error has occurred during the fetch.
onSessionClosed() → void
Called when:
onSessionError(SendbirdException e) → void
Called when the SDK runs into an error while refreshing the session key.
onSessionRefreshed() → void
Called after SDK successfully refreshes the session key.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited