AccountManager.RemoveOnAccountsUpdatedListener Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.