Skip to content

Add Account

//trimble-id-android/com.trimble.id.android/MultiUserAccountManager/addAccount

addAccount

[androidJvm]
open override fun addAccount(callback: ILoginResponseCallback, launchAsTrustedWebActivity: Boolean)

Add a new account.

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

Parameters

androidJvm

callbackThe callback to handle the result of the add account operation.
launchAsTrustedWebActivityIf true, launches the account switch flow as a Trusted Web Activity. Default is false.