Share via


AccountManager.RemoveOnAccountsUpdatedListener Method

Definition

Removes an OnAccountsUpdateListener previously registered with #addOnAccountsUpdatedListener.

[Android.Runtime.Register("removeOnAccountsUpdatedListener", "(Landroid/accounts/OnAccountsUpdateListener;)V", "GetRemoveOnAccountsUpdatedListener_Landroid_accounts_OnAccountsUpdateListener_Handler")]
public virtual void RemoveOnAccountsUpdatedListener (Android.Accounts.IOnAccountsUpdateListener? listener);
[<Android.Runtime.Register("removeOnAccountsUpdatedListener", "(Landroid/accounts/OnAccountsUpdateListener;)V", "GetRemoveOnAccountsUpdatedListener_Landroid_accounts_OnAccountsUpdateListener_Handler")>]
abstract member RemoveOnAccountsUpdatedListener : Android.Accounts.IOnAccountsUpdateListener -> unit
override this.RemoveOnAccountsUpdatedListener : Android.Accounts.IOnAccountsUpdateListener -> unit

Parameters

listener
IOnAccountsUpdateListener

The previously added listener to remove

Attributes

Exceptions

if listener is null

if listener was not already added

Remarks

Removes an OnAccountsUpdateListener previously registered with #addOnAccountsUpdatedListener. The listener will no longer receive notifications of account changes.

It is safe to call this method from the main thread.

No permission is required to call this method.

Java documentation for android.accounts.AccountManager.removeOnAccountsUpdatedListener(android.accounts.OnAccountsUpdateListener).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to