# OnAccountsUpdateListener

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

# OnAccountsUpdateListener

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/accounts/OnAccountsUpdateListener "View this page in Kotlin")\|Java

`
public


interface
OnAccountsUpdateListener
`  
`


`

|-------------------------------------------|
| android.accounts.OnAccountsUpdateListener |

<br />

*** ** * ** ***

An interface that contains the callback used by the AccountManager

## Summary

|                                                                                                                                                                     ### Public methods                                                                                                                                                                      ||
|------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` abstract void` | ` `[onAccountsUpdated](https://developer.android.com/reference/android/accounts/OnAccountsUpdateListener#onAccountsUpdated(android.accounts.Account[]))`(`[Account[]](https://developer.android.com/reference/android/accounts/Account)` accounts) ` This invoked when the AccountManager starts up and whenever the account set changes. |

## Public methods

### onAccountsUpdated

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public abstract void onAccountsUpdated (Account[] accounts)
```

This invoked when the AccountManager starts up and whenever the account set changes.

<br />

|                     Parameters                     ||
|------------|----------------------------------------|
| `accounts` | `Account`: the current accounts <br /> |