Android.Accounts.AbstractAccountAuthenticator.AddAccount Method
Adds an account of the specified accountType.

Syntax

[Android.Runtime.Register("addAccount", "(Landroid/accounts/AccountAuthenticatorResponse;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Landroid/os/Bundle;)Landroid/os/Bundle;", "GetAddAccount_Landroid_accounts_AccountAuthenticatorResponse_Ljava_lang_String_Ljava_lang_String_arrayLjava_lang_String_Landroid_os_Bundle_Handler")]
public abstract Android.OS.Bundle AddAccount (AccountAuthenticatorResponse response, string accountType, string authTokenType, string[] requiredFeatures, Android.OS.Bundle options)

Parameters

response
to send the result back to the AccountManager, will never be null
accountType
the type of account to add, will never be null
authTokenType
the type of auth token to retrieve after adding the account, may be null
requiredFeatures
a String array of authenticator-specific features that the added account must support, may be null
options
a Bundle of authenticator-specific options, may be null

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Android.Accounts.NetworkErrorExceptionif the authenticator could not honor the request due to a network error

Remarks

Adds an account of the specified accountType.

[Android Documentation]

Requirements

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