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
fun SessionParams(    credentials: Credentials,     homeServerConnectionConfig: HomeServerConnectionConfig,     isTokenValid: Boolean,     loginType: LoginType)

Properties

Link copied to clipboard
val credentials: Credentials

Please consider using shortcuts instead.

Link copied to clipboard
val defaultIdentityServerUrl: String?

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

Link copied to clipboard
val deviceId: String

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

Link copied to clipboard

Please consider using shortcuts instead.

Link copied to clipboard
val homeServerHost: String?

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

Link copied to clipboard
val homeServerUrl: String

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

Link copied to clipboard
val homeServerUrlBase: String

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
val isTokenValid: Boolean

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

Link copied to clipboard
val loginType: LoginType

The authentication method that was used to create the session.

Link copied to clipboard
val userId: String

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