Android.Accounts.AbstractAccountAuthenticator.AddAccountFromCredentials Method
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.

Syntax

[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 (AccountAuthenticatorResponse response, Account account, Android.OS.Bundle accountCredentials)

Parameters

response
to send the result back to the AccountManager, will never be null
account
the account to clone, will never be null
accountCredentials
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 AbstractAccountAuthenticator.GetAccountCredentialsForCloning(AccountAuthenticatorResponse, Android.Accounts.Account).

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
!:NoType:NetworkErrorException
Android.Accounts.NetworkErrorException

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.

[Android Documentation]

Requirements

Namespace: Android.Accounts
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 18