SessionParams

data class SessionParams(val credentials: Credentials, val homeServerConnectionConfig: HomeServerConnectionConfig, val isTokenValid: Boolean, val loginType: LoginType)

This data class holds necessary data to open a session. You don't have to manually instantiate it.

Constructors

Link copied to clipboard
constructor(credentials: Credentials, homeServerConnectionConfig: HomeServerConnectionConfig, isTokenValid: Boolean, loginType: LoginType)

Properties

Link copied to clipboard

Please consider using shortcuts instead.

Link copied to clipboard

The default identity server url if any, returned by the homeserver during login phase.

Link copied to clipboard

The deviceId of the session (Ex: "ABCDEFGH").

Link copied to clipboard

Please consider using shortcuts instead.

Link copied to clipboard

The current homeserver host, using what has been entered by the user during login phase.

Link copied to clipboard

The homeserver Url entered by the user during the login phase.

Link copied to clipboard

The current homeserver Url for client-server API. It can be different that the homeserver url entered during login phase, because a redirection may have occurred

Link copied to clipboard

Set to false if the current token is not valid anymore. Application should not have to use this info.

Link copied to clipboard

The authentication method that was used to create the session.

Link copied to clipboard

The userId of the session (Ex: "@user:domain.org").