IConnectionListener

Interface defining callbacks for handling various connection-related events and errors within the SDK.

Implement this interface to receive notifications about connection state changes, login errors, XMPP websocket connection issues, and Single Sign-On (SSO) logout events, and forced user logout events.

Functions

Link copied to clipboard
open fun onConnectionError(error: Exception)

Invoked when encountering an error while establishing the XMPP websocket connection.

Link copied to clipboard

Invoked upon encountering a login error during the sign-in process.

Link copied to clipboard
open fun onSSOLogout(url: String? = null)

Invoked upon Single Sign-On (SSO) logout.

Link copied to clipboard

Invoked when the SDK's connection state changes.

Link copied to clipboard
open fun onUserLogoutForced(restart: Boolean)

Invoked when the user is forcefully logged out, typically due to password modification.