Overview
//trimble-id-android/com.trimble.id.android/IAccountManager
IAccountManager
interface IAccountManager
Interface for managing user accounts in a multi-user environment.
Inheritors
| MultiUserAccountManager |
Functions
| Name | Summary |
|---|---|
| addAccount | [androidJvm] abstract fun addAccount(callback: ILoginResponseCallback, launchAsTrustedWebActivity: Boolean = false) Add a new account. |
| canAddAccounts | [androidJvm] abstract suspend fun canAddAccounts(): Boolean Check if more accounts can be added. |
| getAccounts | [androidJvm] abstract suspend fun getAccounts(): List<Account> Retrieve a list of all stored accounts. This method fetches all accounts currently managed by the application. |
| getActiveAccount | [androidJvm] abstract suspend fun getActiveAccount(): Account? Retrieve the currently active account. It is typically used to fetch the account that the user is currently logged into. |
| removeAccount | [androidJvm] abstract suspend fun removeAccount(id: String): Boolean Remove a specific account by its identifier. This method deletes the account from the application’s storage. |
| 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. |