Android.Accounts.AccountManager.RemoveOnAccountsUpdatedListener Method
Removes an Android.Accounts.IOnAccountsUpdateListener previously registered with AccountManager.AddOnAccountsUpdatedListener(IOnAccountsUpdateListener, Android.OS.Handler, Android.OS.Handler).

Syntax

[Android.Runtime.Register("removeOnAccountsUpdatedListener", "(Landroid/accounts/OnAccountsUpdateListener;)V", "GetRemoveOnAccountsUpdatedListener_Landroid_accounts_OnAccountsUpdateListener_Handler")]
public virtual void RemoveOnAccountsUpdatedListener (IOnAccountsUpdateListener listener)

Parameters

listener
The previously added listener to remove

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif listener is null
Java.Lang.IllegalStateExceptionif listener was not already added

Remarks

Removes an Android.Accounts.IOnAccountsUpdateListener previously registered with AccountManager.AddOnAccountsUpdatedListener(IOnAccountsUpdateListener, Android.OS.Handler, Android.OS.Handler). 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.

[Android Documentation]

Requirements

Namespace: Android.Accounts
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 5