login

suspend fun MatrixClient.Companion.login(baseUrl: Url, identifier: IdentifierType? = null, password: String? = null, token: String? = null, loginType: LoginType = LoginType.Password, deviceId: String? = null, initialDeviceDisplayName: String? = null, repositoriesModuleFactory: suspend (MatrixClient.LoginInfo) -> Module, mediaStoreModuleFactory: suspend (MatrixClient.LoginInfo) -> Module, coroutineContext: CoroutineContext = Dispatchers.Default, configuration: MatrixClientConfiguration.() -> Unit = {}): Result<MatrixClient>
suspend fun MatrixClient.Companion.login(baseUrl: Url, identifier: IdentifierType? = null, password: String? = null, token: String? = null, loginType: LoginType = LoginType.Password, deviceId: String? = null, initialDeviceDisplayName: String? = null, repositoriesModule: Module, mediaStoreModule: Module, coroutineContext: CoroutineContext = Dispatchers.Default, configuration: MatrixClientConfiguration.() -> Unit = {}): Result<MatrixClient>


@JvmName(name = "loginDeprecatedMediaStoreFactory")
suspend fun MatrixClient.Companion.login(baseUrl: Url, identifier: IdentifierType? = null, password: String? = null, token: String? = null, loginType: LoginType = LoginType.Password, deviceId: String? = null, initialDeviceDisplayName: String? = null, repositoriesModuleFactory: suspend (MatrixClient.LoginInfo) -> Module, mediaStoreFactory: suspend (MatrixClient.LoginInfo) -> MediaStore, coroutineContext: CoroutineContext = Dispatchers.Default, configuration: MatrixClientConfiguration.() -> Unit = {}): Result<MatrixClient>

Deprecated

use login with mediaStoreModuleFactory


@JvmName(name = "loginDeprecatedMediaStore")
suspend fun MatrixClient.Companion.login(baseUrl: Url, identifier: IdentifierType? = null, password: String? = null, token: String? = null, loginType: LoginType = LoginType.Password, deviceId: String? = null, initialDeviceDisplayName: String? = null, repositoriesModule: Module, mediaStore: MediaStore, coroutineContext: CoroutineContext = Dispatchers.Default, configuration: MatrixClientConfiguration.() -> Unit = {}): Result<MatrixClient>

Deprecated

use login with mediaStoreModule