Udostępnij za pośrednictwem


AbstractAccountAuthenticator.AddAccountFromCredentials Method

Definition

Creates an account based on credentials provided by the authenticator instance of another user on the device, who has chosen to share the account with this user.

[Android.Runtime.Register("addAccountFromCredentials", "(Landroid/accounts/AccountAuthenticatorResponse;Landroid/accounts/Account;Landroid/os/Bundle;)Landroid/os/Bundle;", "GetAddAccountFromCredentials_Landroid_accounts_AccountAuthenticatorResponse_Landroid_accounts_Account_Landroid_os_Bundle_Handler")]
public virtual Android.OS.Bundle? AddAccountFromCredentials (Android.Accounts.AccountAuthenticatorResponse? response, Android.Accounts.Account? account, Android.OS.Bundle? accountCredentials);
[<Android.Runtime.Register("addAccountFromCredentials", "(Landroid/accounts/AccountAuthenticatorResponse;Landroid/accounts/Account;Landroid/os/Bundle;)Landroid/os/Bundle;", "GetAddAccountFromCredentials_Landroid_accounts_AccountAuthenticatorResponse_Landroid_accounts_Account_Landroid_os_Bundle_Handler")>]
abstract member AddAccountFromCredentials : Android.Accounts.AccountAuthenticatorResponse * Android.Accounts.Account * Android.OS.Bundle -> Android.OS.Bundle
override this.AddAccountFromCredentials : Android.Accounts.AccountAuthenticatorResponse * Android.Accounts.Account * Android.OS.Bundle -> Android.OS.Bundle

Parameters

response
AccountAuthenticatorResponse

to send the result back to the AccountManager, will never be null

account
Account

the account to clone, will never be null

accountCredentials
Bundle

the Bundle containing the required credentials to create the account. Contents of the Bundle are only meaningful to the authenticator. This Bundle is provided by #getAccountCredentialsForCloning(AccountAuthenticatorResponse, Account).

Returns

a Bundle result or null if the result is to be returned via the response.

Attributes

Exceptions

Remarks

Creates an account based on credentials provided by the authenticator instance of another user on the device, who has chosen to share the account with this user.

Java documentation for android.accounts.AbstractAccountAuthenticator.addAccountFromCredentials(android.accounts.AccountAuthenticatorResponse, android.accounts.Account, android.os.Bundle).

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