AbstractAccountAuthenticator.GetAccountRemovalAllowed 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.
Checks if the removal of this account is allowed.
[Android.Runtime.Register("getAccountRemovalAllowed", "(Landroid/accounts/AccountAuthenticatorResponse;Landroid/accounts/Account;)Landroid/os/Bundle;", "GetGetAccountRemovalAllowed_Landroid_accounts_AccountAuthenticatorResponse_Landroid_accounts_Account_Handler")]
public virtual Android.OS.Bundle? GetAccountRemovalAllowed (Android.Accounts.AccountAuthenticatorResponse? response, Android.Accounts.Account? account);
[<Android.Runtime.Register("getAccountRemovalAllowed", "(Landroid/accounts/AccountAuthenticatorResponse;Landroid/accounts/Account;)Landroid/os/Bundle;", "GetGetAccountRemovalAllowed_Landroid_accounts_AccountAuthenticatorResponse_Landroid_accounts_Account_Handler")>]
abstract member GetAccountRemovalAllowed : Android.Accounts.AccountAuthenticatorResponse * Android.Accounts.Account -> Android.OS.Bundle
override this.GetAccountRemovalAllowed : Android.Accounts.AccountAuthenticatorResponse * Android.Accounts.Account -> Android.OS.Bundle
Parameters
- response
- AccountAuthenticatorResponse
to send the result back to the AccountManager, will never be null
- account
- Account
the account to check, will never be null
Returns
a Bundle result or null if the result is to be returned via the response. The result
will contain either:
<ul>
<li> AccountManager#KEY_INTENT
, or
<li> AccountManager#KEY_BOOLEAN_RESULT
, true if the removal of the account is
allowed, false otherwise
<li> AccountManager#KEY_ERROR_CODE
and AccountManager#KEY_ERROR_MESSAGE
to
indicate an error
</ul>
- Attributes
Exceptions
if the authenticator could not honor the request due to a network error
Remarks
Checks if the removal of this account is allowed.
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.