Stay organized with collections
Save and categorize content based on your preferences.
OnAccountsUpdateListener
interface OnAccountsUpdateListener
An interface that contains the callback used by the AccountManager
Summary
Public methods |
abstract Unit |
This invoked when the AccountManager starts up and whenever the account set changes.
|
Public methods
onAccountsUpdated
abstract fun onAccountsUpdated(accounts: Array<Account!>!): Unit
This invoked when the AccountManager starts up and whenever the account set changes.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# OnAccountsUpdateListener\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nOnAccountsUpdateListener\n========================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/accounts/OnAccountsUpdateListener \"View this page in Java\") \n\n```\ninterface OnAccountsUpdateListener\n```\n\n|------------------------------------------------|\n| [android.accounts.OnAccountsUpdateListener](#) |\n\nAn interface that contains the callback used by the AccountManager\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onAccountsUpdated](#onAccountsUpdated(kotlin.Array))`(`accounts:` `[Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)\u003c[Account](/reference/kotlin/android/accounts/Account)!\u003e!`)` 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](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onAccountsUpdated(accounts: Array\u003cAccount!\u003e!): Unit\n```\n\nThis invoked when the AccountManager starts up and whenever the account set changes.\n\n| Parameters ||\n|------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `accounts` | [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)\\\u003c[Account](/reference/kotlin/android/accounts/Account)!\\\u003e!: the current accounts |"]]