Table of Contents

Class AccountManager

Namespace
Android.Accounts
Assembly
MASES.Netdroid.dll
public class AccountManager : JVMBridgeBase<AccountManager>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
JVMBridgeBase<AccountManager>
AccountManager
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<AccountManager>.IsAssignableFrom(IJavaType)
JVMBridgeBase<AccountManager>.IsAssignableFrom<T>()
JVMBridgeBase<AccountManager>.Execute<T>(params T[])
JVMBridgeBase<AccountManager>.DynBridgeClazz
JVMBridgeBase<AccountManager>.BridgeClazz
JVMBridgeBase.RuntimeClassNameOf<T>()
JVMBridgeBase.ClassNameOf<T>()
JVMBridgeBase.ClassOf<T>()
JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)
JVMBridgeBase.MonitorEnter()
JVMBridgeBase.MonitorExit()
JVMBridgeBase.IsInstanceOf(IJavaType)
JVMBridgeBase.IsInstanceOf<T>()
JVMBridgeBase.RuntimeIsInstanceOf<T>()
JVMBridgeBase.CastTo<TNewClass>()
JVMBridgeBase.CastDirect<TNewClass>()
JVMBridgeBase.Dispose()
JVMBridgeBase.ToString()
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeListener
Extension Methods

Constructors

AccountManager()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

public AccountManager()

AccountManager(params object[])

Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class

public AccountManager(params object[] args)

Parameters

args object[]

Properties

ACTION_ACCOUNT_REMOVED

public static String ACTION_ACCOUNT_REMOVED { get; }

Property Value

String

ACTION_AUTHENTICATOR_INTENT

public static String ACTION_AUTHENTICATOR_INTENT { get; }

Property Value

String

AUTHENTICATOR_ATTRIBUTES_NAME

public static String AUTHENTICATOR_ATTRIBUTES_NAME { get; }

Property Value

String

AUTHENTICATOR_META_DATA_NAME

public static String AUTHENTICATOR_META_DATA_NAME { get; }

Property Value

String

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

ERROR_CODE_BAD_ARGUMENTS

public static int ERROR_CODE_BAD_ARGUMENTS { get; }

Property Value

int

ERROR_CODE_BAD_AUTHENTICATION

public static int ERROR_CODE_BAD_AUTHENTICATION { get; }

Property Value

int

ERROR_CODE_BAD_REQUEST

public static int ERROR_CODE_BAD_REQUEST { get; }

Property Value

int

ERROR_CODE_CANCELED

public static int ERROR_CODE_CANCELED { get; }

Property Value

int

ERROR_CODE_INVALID_RESPONSE

public static int ERROR_CODE_INVALID_RESPONSE { get; }

Property Value

int

ERROR_CODE_NETWORK_ERROR

public static int ERROR_CODE_NETWORK_ERROR { get; }

Property Value

int

ERROR_CODE_REMOTE_EXCEPTION

public static int ERROR_CODE_REMOTE_EXCEPTION { get; }

Property Value

int

ERROR_CODE_UNSUPPORTED_OPERATION

public static int ERROR_CODE_UNSUPPORTED_OPERATION { get; }

Property Value

int

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

KEY_ACCOUNTS

public static String KEY_ACCOUNTS { get; }

Property Value

String

KEY_ACCOUNT_AUTHENTICATOR_RESPONSE

public static String KEY_ACCOUNT_AUTHENTICATOR_RESPONSE { get; }

Property Value

String

KEY_ACCOUNT_MANAGER_RESPONSE

public static String KEY_ACCOUNT_MANAGER_RESPONSE { get; }

Property Value

String

KEY_ACCOUNT_NAME

public static String KEY_ACCOUNT_NAME { get; }

Property Value

String

KEY_ACCOUNT_SESSION_BUNDLE

public static String KEY_ACCOUNT_SESSION_BUNDLE { get; }

Property Value

String

KEY_ACCOUNT_STATUS_TOKEN

public static String KEY_ACCOUNT_STATUS_TOKEN { get; }

Property Value

String

KEY_ACCOUNT_TYPE

public static String KEY_ACCOUNT_TYPE { get; }

Property Value

String

KEY_ANDROID_PACKAGE_NAME

public static String KEY_ANDROID_PACKAGE_NAME { get; }

Property Value

String

KEY_AUTHENTICATOR_TYPES

public static String KEY_AUTHENTICATOR_TYPES { get; }

Property Value

String

KEY_AUTHTOKEN

public static String KEY_AUTHTOKEN { get; }

Property Value

String

KEY_AUTH_FAILED_MESSAGE

public static String KEY_AUTH_FAILED_MESSAGE { get; }

Property Value

String

KEY_AUTH_TOKEN_LABEL

public static String KEY_AUTH_TOKEN_LABEL { get; }

Property Value

String

KEY_BOOLEAN_RESULT

public static String KEY_BOOLEAN_RESULT { get; }

Property Value

String

KEY_CALLER_PID

public static String KEY_CALLER_PID { get; }

Property Value

String

KEY_CALLER_UID

public static String KEY_CALLER_UID { get; }

Property Value

String

KEY_ERROR_CODE

public static String KEY_ERROR_CODE { get; }

Property Value

String

KEY_ERROR_MESSAGE

public static String KEY_ERROR_MESSAGE { get; }

Property Value

String

KEY_INTENT

public static String KEY_INTENT { get; }

Property Value

String

KEY_LAST_AUTHENTICATED_TIME

public static String KEY_LAST_AUTHENTICATED_TIME { get; }

Property Value

String

KEY_PASSWORD

public static String KEY_PASSWORD { get; }

Property Value

String

KEY_USERDATA

public static String KEY_USERDATA { get; }

Property Value

String

LOGIN_ACCOUNTS_CHANGED_ACTION

[Obsolete]
public static String LOGIN_ACCOUNTS_CHANGED_ACTION { get; }

Property Value

String

PACKAGE_NAME_KEY_LEGACY_NOT_VISIBLE

public static String PACKAGE_NAME_KEY_LEGACY_NOT_VISIBLE { get; }

Property Value

String

PACKAGE_NAME_KEY_LEGACY_VISIBLE

public static String PACKAGE_NAME_KEY_LEGACY_VISIBLE { get; }

Property Value

String

VISIBILITY_NOT_VISIBLE

public static int VISIBILITY_NOT_VISIBLE { get; }

Property Value

int

VISIBILITY_UNDEFINED

public static int VISIBILITY_UNDEFINED { get; }

Property Value

int

VISIBILITY_USER_MANAGED_NOT_VISIBLE

public static int VISIBILITY_USER_MANAGED_NOT_VISIBLE { get; }

Property Value

int

VISIBILITY_USER_MANAGED_VISIBLE

public static int VISIBILITY_USER_MANAGED_VISIBLE { get; }

Property Value

int

VISIBILITY_VISIBLE

public static int VISIBILITY_VISIBLE { get; }

Property Value

int

Methods

AddAccount(String, String, String[], Bundle, Activity, AccountManagerCallback<Bundle>, Handler)

public AccountManagerFuture<Bundle> AddAccount(String arg0, String arg1, String[] arg2, Bundle arg3, Activity arg4, AccountManagerCallback<Bundle> arg5, Handler arg6)

Parameters

arg0 String

String

arg1 String

String

arg2 String[]

String

arg3 Bundle

Bundle

arg4 Activity

Activity

arg5 AccountManagerCallback<Bundle>

AccountManagerCallback

arg6 Handler

Handler

Returns

AccountManagerFuture<Bundle>

AccountManagerFuture

AddAccountExplicitly(Account, String, Bundle)

public bool AddAccountExplicitly(Account arg0, String arg1, Bundle arg2)

Parameters

arg0 Account

Account

arg1 String

String

arg2 Bundle

Bundle

Returns

bool

bool

AddAccountExplicitly(Account, String, Bundle, Map<String, Integer>)

public bool AddAccountExplicitly(Account arg0, String arg1, Bundle arg2, Map<String, Integer> arg3)

Parameters

arg0 Account

Account

arg1 String

String

arg2 Bundle

Bundle

arg3 Map<String, Integer>

Map

Returns

bool

bool

AddOnAccountsUpdatedListener(OnAccountsUpdateListener, Handler, bool)

public void AddOnAccountsUpdatedListener(OnAccountsUpdateListener arg0, Handler arg1, bool arg2)

Parameters

arg0 OnAccountsUpdateListener

OnAccountsUpdateListener

arg1 Handler

Handler

arg2 bool

bool

AddOnAccountsUpdatedListener(OnAccountsUpdateListener, Handler, bool, String[])

public void AddOnAccountsUpdatedListener(OnAccountsUpdateListener arg0, Handler arg1, bool arg2, String[] arg3)

Parameters

arg0 OnAccountsUpdateListener

OnAccountsUpdateListener

arg1 Handler

Handler

arg2 bool

bool

arg3 String[]

String

BlockingGetAuthToken(Account, String, bool)

public String BlockingGetAuthToken(Account arg0, String arg1, bool arg2)

Parameters

arg0 Account

Account

arg1 String

String

arg2 bool

bool

Returns

String

String

Exceptions

AuthenticatorException
IOException
OperationCanceledException

ClearPassword(Account)

public void ClearPassword(Account arg0)

Parameters

arg0 Account

Account

ConfirmCredentials(Account, Bundle, Activity, AccountManagerCallback<Bundle>, Handler)

public AccountManagerFuture<Bundle> ConfirmCredentials(Account arg0, Bundle arg1, Activity arg2, AccountManagerCallback<Bundle> arg3, Handler arg4)

Parameters

arg0 Account

Account

arg1 Bundle

Bundle

arg2 Activity

Activity

arg3 AccountManagerCallback<Bundle>

AccountManagerCallback

arg4 Handler

Handler

Returns

AccountManagerFuture<Bundle>

AccountManagerFuture

EditProperties(String, Activity, AccountManagerCallback<Bundle>, Handler)

public AccountManagerFuture<Bundle> EditProperties(String arg0, Activity arg1, AccountManagerCallback<Bundle> arg2, Handler arg3)

Parameters

arg0 String

String

arg1 Activity

Activity

arg2 AccountManagerCallback<Bundle>

AccountManagerCallback

arg3 Handler

Handler

Returns

AccountManagerFuture<Bundle>

AccountManagerFuture

FinishSession(Bundle, Activity, AccountManagerCallback<Bundle>, Handler)

public AccountManagerFuture<Bundle> FinishSession(Bundle arg0, Activity arg1, AccountManagerCallback<Bundle> arg2, Handler arg3)

Parameters

arg0 Bundle

Bundle

arg1 Activity

Activity

arg2 AccountManagerCallback<Bundle>

AccountManagerCallback

arg3 Handler

Handler

Returns

AccountManagerFuture<Bundle>

AccountManagerFuture

Get(Context)

public static AccountManager Get(Context arg0)

Parameters

arg0 Context

Context

Returns

AccountManager

AccountManager

GetAccountVisibility(Account, String)

public int GetAccountVisibility(Account arg0, String arg1)

Parameters

arg0 Account

Account

arg1 String

String

Returns

int

int

GetAccounts()

public Account[] GetAccounts()

Returns

Account[]

Account

GetAccountsAndVisibilityForPackage(String, String)

public Map<Account, Integer> GetAccountsAndVisibilityForPackage(String arg0, String arg1)

Parameters

arg0 String

String

arg1 String

String

Returns

Map<Account, Integer>

Map

GetAccountsByType(String)

public Account[] GetAccountsByType(String arg0)

Parameters

arg0 String

String

Returns

Account[]

Account

GetAccountsByTypeAndFeatures(String, String[], AccountManagerCallback<Account[]>, Handler)

public AccountManagerFuture<Account[]> GetAccountsByTypeAndFeatures(String arg0, String[] arg1, AccountManagerCallback<Account[]> arg2, Handler arg3)

Parameters

arg0 String

String

arg1 String[]

String

arg2 AccountManagerCallback<Account[]>

AccountManagerCallback

arg3 Handler

Handler

Returns

AccountManagerFuture<Account[]>

AccountManagerFuture

GetAccountsByTypeForPackage(String, String)

public Account[] GetAccountsByTypeForPackage(String arg0, String arg1)

Parameters

arg0 String

String

arg1 String

String

Returns

Account[]

Account

GetAuthToken(Account, String, Bundle, Activity, AccountManagerCallback<Bundle>, Handler)

public AccountManagerFuture<Bundle> GetAuthToken(Account arg0, String arg1, Bundle arg2, Activity arg3, AccountManagerCallback<Bundle> arg4, Handler arg5)

Parameters

arg0 Account

Account

arg1 String

String

arg2 Bundle

Bundle

arg3 Activity

Activity

arg4 AccountManagerCallback<Bundle>

AccountManagerCallback

arg5 Handler

Handler

Returns

AccountManagerFuture<Bundle>

AccountManagerFuture

GetAuthToken(Account, String, Bundle, bool, AccountManagerCallback<Bundle>, Handler)

public AccountManagerFuture<Bundle> GetAuthToken(Account arg0, String arg1, Bundle arg2, bool arg3, AccountManagerCallback<Bundle> arg4, Handler arg5)

Parameters

arg0 Account

Account

arg1 String

String

arg2 Bundle

Bundle

arg3 bool

bool

arg4 AccountManagerCallback<Bundle>

AccountManagerCallback

arg5 Handler

Handler

Returns

AccountManagerFuture<Bundle>

AccountManagerFuture

GetAuthToken(Account, String, bool, AccountManagerCallback<Bundle>, Handler)

[Obsolete]
public AccountManagerFuture<Bundle> GetAuthToken(Account arg0, String arg1, bool arg2, AccountManagerCallback<Bundle> arg3, Handler arg4)

Parameters

arg0 Account

Account

arg1 String

String

arg2 bool

bool

arg3 AccountManagerCallback<Bundle>

AccountManagerCallback

arg4 Handler

Handler

Returns

AccountManagerFuture<Bundle>

AccountManagerFuture

GetAuthTokenByFeatures(String, String, String[], Activity, Bundle, Bundle, AccountManagerCallback<Bundle>, Handler)

public AccountManagerFuture<Bundle> GetAuthTokenByFeatures(String arg0, String arg1, String[] arg2, Activity arg3, Bundle arg4, Bundle arg5, AccountManagerCallback<Bundle> arg6, Handler arg7)

Parameters

arg0 String

String

arg1 String

String

arg2 String[]

String

arg3 Activity

Activity

arg4 Bundle

Bundle

arg5 Bundle

Bundle

arg6 AccountManagerCallback<Bundle>

AccountManagerCallback

arg7 Handler

Handler

Returns

AccountManagerFuture<Bundle>

AccountManagerFuture

GetAuthenticatorTypes()

public AuthenticatorDescription[] GetAuthenticatorTypes()

Returns

AuthenticatorDescription[]

AuthenticatorDescription

GetPackagesAndVisibilityForAccount(Account)

public Map<String, Integer> GetPackagesAndVisibilityForAccount(Account arg0)

Parameters

arg0 Account

Account

Returns

Map<String, Integer>

Map

GetPassword(Account)

public String GetPassword(Account arg0)

Parameters

arg0 Account

Account

Returns

String

String

GetPreviousName(Account)

public String GetPreviousName(Account arg0)

Parameters

arg0 Account

Account

Returns

String

String

GetUserData(Account, String)

public String GetUserData(Account arg0, String arg1)

Parameters

arg0 Account

Account

arg1 String

String

Returns

String

String

HasFeatures(Account, String[], AccountManagerCallback<Boolean>, Handler)

public AccountManagerFuture<Boolean> HasFeatures(Account arg0, String[] arg1, AccountManagerCallback<Boolean> arg2, Handler arg3)

Parameters

arg0 Account

Account

arg1 String[]

String

arg2 AccountManagerCallback<Boolean>

AccountManagerCallback

arg3 Handler

Handler

Returns

AccountManagerFuture<Boolean>

AccountManagerFuture

InvalidateAuthToken(String, String)

public void InvalidateAuthToken(String arg0, String arg1)

Parameters

arg0 String

String

arg1 String

String

IsCredentialsUpdateSuggested(Account, String, AccountManagerCallback<Boolean>, Handler)

public AccountManagerFuture<Boolean> IsCredentialsUpdateSuggested(Account arg0, String arg1, AccountManagerCallback<Boolean> arg2, Handler arg3)

Parameters

arg0 Account

Account

arg1 String

String

arg2 AccountManagerCallback<Boolean>

AccountManagerCallback

arg3 Handler

Handler

Returns

AccountManagerFuture<Boolean>

AccountManagerFuture

NewChooseAccountIntent(Account, ArrayList<Account>, String[], bool, String, String, String[], Bundle)

[Obsolete]
public static Intent NewChooseAccountIntent(Account arg0, ArrayList<Account> arg1, String[] arg2, bool arg3, String arg4, String arg5, String[] arg6, Bundle arg7)

Parameters

arg0 Account

Account

arg1 ArrayList<Account>

ArrayList

arg2 String[]

String

arg3 bool

bool

arg4 String

String

arg5 String

String

arg6 String[]

String

arg7 Bundle

Bundle

Returns

Intent

Intent

NewChooseAccountIntent(Account, List<Account>, String[], String, String, String[], Bundle)

public static Intent NewChooseAccountIntent(Account arg0, List<Account> arg1, String[] arg2, String arg3, String arg4, String[] arg5, Bundle arg6)

Parameters

arg0 Account

Account

arg1 List<Account>

List

arg2 String[]

String

arg3 String

String

arg4 String

String

arg5 String[]

String

arg6 Bundle

Bundle

Returns

Intent

Intent

NotifyAccountAuthenticated(Account)

public bool NotifyAccountAuthenticated(Account arg0)

Parameters

arg0 Account

Account

Returns

bool

bool

PeekAuthToken(Account, String)

public String PeekAuthToken(Account arg0, String arg1)

Parameters

arg0 Account

Account

arg1 String

String

Returns

String

String

RemoveAccount(Account, AccountManagerCallback<Boolean>, Handler)

[Obsolete]
public AccountManagerFuture<Boolean> RemoveAccount(Account arg0, AccountManagerCallback<Boolean> arg1, Handler arg2)

Parameters

arg0 Account

Account

arg1 AccountManagerCallback<Boolean>

AccountManagerCallback

arg2 Handler

Handler

Returns

AccountManagerFuture<Boolean>

AccountManagerFuture

RemoveAccount(Account, Activity, AccountManagerCallback<Bundle>, Handler)

public AccountManagerFuture<Bundle> RemoveAccount(Account arg0, Activity arg1, AccountManagerCallback<Bundle> arg2, Handler arg3)

Parameters

arg0 Account

Account

arg1 Activity

Activity

arg2 AccountManagerCallback<Bundle>

AccountManagerCallback

arg3 Handler

Handler

Returns

AccountManagerFuture<Bundle>

AccountManagerFuture

RemoveAccountExplicitly(Account)

public bool RemoveAccountExplicitly(Account arg0)

Parameters

arg0 Account

Account

Returns

bool

bool

RemoveOnAccountsUpdatedListener(OnAccountsUpdateListener)

public void RemoveOnAccountsUpdatedListener(OnAccountsUpdateListener arg0)

Parameters

arg0 OnAccountsUpdateListener

OnAccountsUpdateListener

RenameAccount(Account, String, AccountManagerCallback<Account>, Handler)

public AccountManagerFuture<Account> RenameAccount(Account arg0, String arg1, AccountManagerCallback<Account> arg2, Handler arg3)

Parameters

arg0 Account

Account

arg1 String

String

arg2 AccountManagerCallback<Account>

AccountManagerCallback

arg3 Handler

Handler

Returns

AccountManagerFuture<Account>

AccountManagerFuture

SetAccountVisibility(Account, String, int)

public bool SetAccountVisibility(Account arg0, String arg1, int arg2)

Parameters

arg0 Account

Account

arg1 String

String

arg2 int

int

Returns

bool

bool

SetAuthToken(Account, String, String)

public void SetAuthToken(Account arg0, String arg1, String arg2)

Parameters

arg0 Account

Account

arg1 String

String

arg2 String

String

SetPassword(Account, String)

public void SetPassword(Account arg0, String arg1)

Parameters

arg0 Account

Account

arg1 String

String

SetUserData(Account, String, String)

public void SetUserData(Account arg0, String arg1, String arg2)

Parameters

arg0 Account

Account

arg1 String

String

arg2 String

String

StartAddAccountSession(String, String, String[], Bundle, Activity, AccountManagerCallback<Bundle>, Handler)

public AccountManagerFuture<Bundle> StartAddAccountSession(String arg0, String arg1, String[] arg2, Bundle arg3, Activity arg4, AccountManagerCallback<Bundle> arg5, Handler arg6)

Parameters

arg0 String

String

arg1 String

String

arg2 String[]

String

arg3 Bundle

Bundle

arg4 Activity

Activity

arg5 AccountManagerCallback<Bundle>

AccountManagerCallback

arg6 Handler

Handler

Returns

AccountManagerFuture<Bundle>

AccountManagerFuture

StartUpdateCredentialsSession(Account, String, Bundle, Activity, AccountManagerCallback<Bundle>, Handler)

public AccountManagerFuture<Bundle> StartUpdateCredentialsSession(Account arg0, String arg1, Bundle arg2, Activity arg3, AccountManagerCallback<Bundle> arg4, Handler arg5)

Parameters

arg0 Account

Account

arg1 String

String

arg2 Bundle

Bundle

arg3 Activity

Activity

arg4 AccountManagerCallback<Bundle>

AccountManagerCallback

arg5 Handler

Handler

Returns

AccountManagerFuture<Bundle>

AccountManagerFuture

UpdateCredentials(Account, String, Bundle, Activity, AccountManagerCallback<Bundle>, Handler)

public AccountManagerFuture<Bundle> UpdateCredentials(Account arg0, String arg1, Bundle arg2, Activity arg3, AccountManagerCallback<Bundle> arg4, Handler arg5)

Parameters

arg0 Account

Account

arg1 String

String

arg2 Bundle

Bundle

arg3 Activity

Activity

arg4 AccountManagerCallback<Bundle>

AccountManagerCallback

arg5 Handler

Handler

Returns

AccountManagerFuture<Bundle>

AccountManagerFuture