Sdílet prostřednictvím


AbstractAccountAuthenticator.GetAccountCredentialsForCloning Method

Definition

Returns a Bundle that contains whatever is required to clone the account on a different user.

[Android.Runtime.Register("getAccountCredentialsForCloning", "(Landroid/accounts/AccountAuthenticatorResponse;Landroid/accounts/Account;)Landroid/os/Bundle;", "GetGetAccountCredentialsForCloning_Landroid_accounts_AccountAuthenticatorResponse_Landroid_accounts_Account_Handler")]
public virtual Android.OS.Bundle? GetAccountCredentialsForCloning (Android.Accounts.AccountAuthenticatorResponse? response, Android.Accounts.Account? account);
[<Android.Runtime.Register("getAccountCredentialsForCloning", "(Landroid/accounts/AccountAuthenticatorResponse;Landroid/accounts/Account;)Landroid/os/Bundle;", "GetGetAccountCredentialsForCloning_Landroid_accounts_AccountAuthenticatorResponse_Landroid_accounts_Account_Handler")>]
abstract member GetAccountCredentialsForCloning : Android.Accounts.AccountAuthenticatorResponse * Android.Accounts.Account -> Android.OS.Bundle
override this.GetAccountCredentialsForCloning : 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 clone, will never be null

Returns

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

Attributes

Exceptions

Remarks

Returns a Bundle that contains whatever is required to clone the account on a different user. The Bundle is passed to the authenticator instance in the target user via #addAccountFromCredentials(AccountAuthenticatorResponse, Account, Bundle). The default implementation returns null, indicating that cloning is not supported.

Java documentation for android.accounts.AbstractAccountAuthenticator.getAccountCredentialsForCloning(android.accounts.AccountAuthenticatorResponse, android.accounts.Account).

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