Sessions
The session service.
This class allows performing session related actions like establishing a new one, restoring a session that already exists, suspending it or disconnecting it when the session has to be ended. It also allows adding a listener to receive the session state (@see SessionsListener).
Properties
Functions
Adds a listener to receive session state events.
Checks if there is enough information to restore the session.
Destroys the active session established against the server. IMPORTANT: After invoking this method, the session will be no longer active and a new SippoClient instance needs to be configured.
Enables/Disables the Do-Not-Disturb option. When activated, disables the current Firebase token to avoid receiving push notifications from the server and blocks incoming calls received through socket.
Fetches the available AuthProvider.
Retrieves the information of the local user.
Retrieves the session identifier in the signaling server. The identifier will be null if the session has not been established yet.
Checks if a permission is granted for the user in the current session.
Removes the specified listener.
Sets a new Firebase token to receive push notifications from the server. It is recommended to call it when Firebase provides the token to the application. The SDK will register this token for the current session (if any) and for the following ones. If another token is provided, the method should be called again with the new value.
Updates de local user.