Stay organized with collections
Save and categorize content based on your preferences.
OnAccountsUpdateListener
public
interface
OnAccountsUpdateListener
android.accounts.OnAccountsUpdateListener
|
An interface that contains the callback used by the AccountManager
Summary
Public methods |
abstract
void
|
onAccountsUpdated(Account[] accounts)
This invoked when the AccountManager starts up and whenever the account
set changes.
|
Public methods
onAccountsUpdated
public abstract void onAccountsUpdated (Account[] accounts)
This invoked when the AccountManager starts up and whenever the account
set changes.
Parameters |
accounts |
Account : the current accounts |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# OnAccountsUpdateListener\n\nAdded in [API level 5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nOnAccountsUpdateListener\n========================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/accounts/OnAccountsUpdateListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\n\n\ninterface\nOnAccountsUpdateListener\n`\n\n\n`\n\n\n`\n\n|-------------------------------------------|\n| android.accounts.OnAccountsUpdateListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nAn interface that contains the callback used by the AccountManager\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onAccountsUpdated](/reference/android/accounts/OnAccountsUpdateListener#onAccountsUpdated(android.accounts.Account[]))`(`[Account[]](/reference/android/accounts/Account)` accounts) ` This invoked when the AccountManager starts up and whenever the account set changes. |\n\nPublic methods\n--------------\n\n### onAccountsUpdated\n\nAdded in [API level 5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onAccountsUpdated (Account[] accounts)\n```\n\nThis invoked when the AccountManager starts up and whenever the account\nset changes.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------|----------------------------------------|\n| `accounts` | `Account`: the current accounts \u003cbr /\u003e |"]]