Skip to content

Switch Account

//trimble-id-android/com.trimble.id.android/IAccountManager/switchAccount

switchAccount

[androidJvm]
abstract fun switchAccount(id: String, callback: ILoginResponseCallback, launchAsTrustedWebActivity: Boolean = false)

Switch to an existing account. The user will be prompted to log in again to complete the account switch process.

Note: Before invoking this method, ensure that registerLoginLauncher of the Authenticator is called to handle the callback for the account switch operation.

Parameters

androidJvm

idThe unique subject identifier (sub) of the account to switch to.
callbackThe callback to handle the result of the account switch operation.
launchAsTrustedWebActivityIf true, launches the account switch flow as a Trusted Web Activity. Default is false.