Dela via


AbstractAccountAuthenticator.HasFeatures Method

Definition

Checks if the account supports all the specified authenticator specific features.

[Android.Runtime.Register("hasFeatures", "(Landroid/accounts/AccountAuthenticatorResponse;Landroid/accounts/Account;[Ljava/lang/String;)Landroid/os/Bundle;", "GetHasFeatures_Landroid_accounts_AccountAuthenticatorResponse_Landroid_accounts_Account_arrayLjava_lang_String_Handler")]
public abstract Android.OS.Bundle? HasFeatures (Android.Accounts.AccountAuthenticatorResponse? response, Android.Accounts.Account? account, string[]? features);
[<Android.Runtime.Register("hasFeatures", "(Landroid/accounts/AccountAuthenticatorResponse;Landroid/accounts/Account;[Ljava/lang/String;)Landroid/os/Bundle;", "GetHasFeatures_Landroid_accounts_AccountAuthenticatorResponse_Landroid_accounts_Account_arrayLjava_lang_String_Handler")>]
abstract member HasFeatures : Android.Accounts.AccountAuthenticatorResponse * Android.Accounts.Account * string[] -> 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

features
String[]

an array of features 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 account has all the features, 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 account supports all the specified authenticator specific features.

Java documentation for android.accounts.AbstractAccountAuthenticator.hasFeatures(android.accounts.AccountAuthenticatorResponse, android.accounts.Account, java.lang.String[]).

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