Class AccountManager
public class AccountManager : JVMBridgeBase<AccountManager>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<AccountManager>AccountManager
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Inherited Members
-
JVMBridgeBase<AccountManager>.IsAssignableFrom(IJavaType)JVMBridgeBase<AccountManager>.IsAssignableFrom<T>()JVMBridgeBase<AccountManager>.Execute<T>(params T[])JVMBridgeBase<AccountManager>.DynBridgeClazzJVMBridgeBase<AccountManager>.BridgeClazzJVMBridgeBase.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.IExecuteWithSignature<TNewClass, TReturn, TConverter>(string, string, params object[])JVMBridgeBase.DynBridgeInstanceJVMBridgeBase.BridgeInstanceJVMBridgeBase.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
ACTION_AUTHENTICATOR_INTENT
public static String ACTION_AUTHENTICATOR_INTENT { get; }
Property Value
AUTHENTICATOR_ATTRIBUTES_NAME
public static String AUTHENTICATOR_ATTRIBUTES_NAME { get; }
Property Value
AUTHENTICATOR_META_DATA_NAME
public static String AUTHENTICATOR_META_DATA_NAME { get; }
Property Value
BridgeClassName
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { get; }
Property Value
ERROR_CODE_BAD_ARGUMENTS
public static int ERROR_CODE_BAD_ARGUMENTS { get; }
Property Value
ERROR_CODE_BAD_AUTHENTICATION
public static int ERROR_CODE_BAD_AUTHENTICATION { get; }
Property Value
ERROR_CODE_BAD_REQUEST
public static int ERROR_CODE_BAD_REQUEST { get; }
Property Value
ERROR_CODE_CANCELED
public static int ERROR_CODE_CANCELED { get; }
Property Value
ERROR_CODE_INVALID_RESPONSE
public static int ERROR_CODE_INVALID_RESPONSE { get; }
Property Value
ERROR_CODE_NETWORK_ERROR
public static int ERROR_CODE_NETWORK_ERROR { get; }
Property Value
ERROR_CODE_REMOTE_EXCEPTION
public static int ERROR_CODE_REMOTE_EXCEPTION { get; }
Property Value
ERROR_CODE_UNSUPPORTED_OPERATION
public static int ERROR_CODE_UNSUPPORTED_OPERATION { get; }
Property Value
IsBridgeAbstract
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
public override bool IsBridgeStatic { get; }
Property Value
KEY_ACCOUNTS
public static String KEY_ACCOUNTS { get; }
Property Value
KEY_ACCOUNT_AUTHENTICATOR_RESPONSE
public static String KEY_ACCOUNT_AUTHENTICATOR_RESPONSE { get; }
Property Value
KEY_ACCOUNT_MANAGER_RESPONSE
public static String KEY_ACCOUNT_MANAGER_RESPONSE { get; }
Property Value
KEY_ACCOUNT_NAME
public static String KEY_ACCOUNT_NAME { get; }
Property Value
KEY_ACCOUNT_SESSION_BUNDLE
public static String KEY_ACCOUNT_SESSION_BUNDLE { get; }
Property Value
KEY_ACCOUNT_STATUS_TOKEN
public static String KEY_ACCOUNT_STATUS_TOKEN { get; }
Property Value
KEY_ACCOUNT_TYPE
public static String KEY_ACCOUNT_TYPE { get; }
Property Value
KEY_ANDROID_PACKAGE_NAME
public static String KEY_ANDROID_PACKAGE_NAME { get; }
Property Value
KEY_AUTHENTICATOR_TYPES
https://developer.android.com/reference/android/accounts/AccountManager.html#KEY_AUTHENTICATOR_TYPES
public static String KEY_AUTHENTICATOR_TYPES { get; }
Property Value
KEY_AUTHTOKEN
public static String KEY_AUTHTOKEN { get; }
Property Value
KEY_AUTH_FAILED_MESSAGE
https://developer.android.com/reference/android/accounts/AccountManager.html#KEY_AUTH_FAILED_MESSAGE
public static String KEY_AUTH_FAILED_MESSAGE { get; }
Property Value
KEY_AUTH_TOKEN_LABEL
public static String KEY_AUTH_TOKEN_LABEL { get; }
Property Value
KEY_BOOLEAN_RESULT
public static String KEY_BOOLEAN_RESULT { get; }
Property Value
KEY_CALLER_PID
public static String KEY_CALLER_PID { get; }
Property Value
KEY_CALLER_UID
public static String KEY_CALLER_UID { get; }
Property Value
KEY_ERROR_CODE
public static String KEY_ERROR_CODE { get; }
Property Value
KEY_ERROR_MESSAGE
public static String KEY_ERROR_MESSAGE { get; }
Property Value
KEY_INTENT
public static String KEY_INTENT { get; }
Property Value
KEY_LAST_AUTHENTICATED_TIME
public static String KEY_LAST_AUTHENTICATED_TIME { get; }
Property Value
KEY_PASSWORD
public static String KEY_PASSWORD { get; }
Property Value
KEY_USERDATA
public static String KEY_USERDATA { get; }
Property Value
LOGIN_ACCOUNTS_CHANGED_ACTION
[Obsolete]
public static String LOGIN_ACCOUNTS_CHANGED_ACTION { get; }
Property Value
PACKAGE_NAME_KEY_LEGACY_NOT_VISIBLE
public static String PACKAGE_NAME_KEY_LEGACY_NOT_VISIBLE { get; }
Property Value
PACKAGE_NAME_KEY_LEGACY_VISIBLE
public static String PACKAGE_NAME_KEY_LEGACY_VISIBLE { get; }
Property Value
VISIBILITY_NOT_VISIBLE
public static int VISIBILITY_NOT_VISIBLE { get; }
Property Value
VISIBILITY_UNDEFINED
public static int VISIBILITY_UNDEFINED { get; }
Property Value
VISIBILITY_USER_MANAGED_NOT_VISIBLE
public static int VISIBILITY_USER_MANAGED_NOT_VISIBLE { get; }
Property Value
VISIBILITY_USER_MANAGED_VISIBLE
public static int VISIBILITY_USER_MANAGED_VISIBLE { get; }
Property Value
VISIBILITY_VISIBLE
public static int VISIBILITY_VISIBLE { get; }
Property Value
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
Stringarg1
Stringarg2
String[]arg3
Bundlearg4
Activityarg5
AccountManagerCallback<Bundle>arg6
Handler
Returns
AddAccountExplicitly(Account, String, Bundle)
public bool AddAccountExplicitly(Account arg0, String arg1, Bundle arg2)
Parameters
Returns
AddAccountExplicitly(Account, String, Bundle, Map<String, Integer>)
public bool AddAccountExplicitly(Account arg0, String arg1, Bundle arg2, Map<String, Integer> arg3)
Parameters
Returns
AddOnAccountsUpdatedListener(OnAccountsUpdateListener, Handler, bool)
public void AddOnAccountsUpdatedListener(OnAccountsUpdateListener arg0, Handler arg1, bool arg2)
Parameters
arg0
OnAccountsUpdateListenerarg1
Handlerarg2
bool
AddOnAccountsUpdatedListener(OnAccountsUpdateListener, Handler, bool, String[])
public void AddOnAccountsUpdatedListener(OnAccountsUpdateListener arg0, Handler arg1, bool arg2, String[] arg3)
Parameters
arg0
OnAccountsUpdateListenerarg1
Handlerarg2
boolarg3
String[]
BlockingGetAuthToken(Account, String, bool)
public String BlockingGetAuthToken(Account arg0, String arg1, bool arg2)
Parameters
Returns
Exceptions
ClearPassword(Account)
public void ClearPassword(Account arg0)
Parameters
ConfirmCredentials(Account, Bundle, Activity, AccountManagerCallback<Bundle>, Handler)
public AccountManagerFuture<Bundle> ConfirmCredentials(Account arg0, Bundle arg1, Activity arg2, AccountManagerCallback<Bundle> arg3, Handler arg4)
Parameters
Returns
EditProperties(String, Activity, AccountManagerCallback<Bundle>, Handler)
public AccountManagerFuture<Bundle> EditProperties(String arg0, Activity arg1, AccountManagerCallback<Bundle> arg2, Handler arg3)
Parameters
arg0
Stringarg1
Activityarg2
AccountManagerCallback<Bundle>arg3
Handler
Returns
FinishSession(Bundle, Activity, AccountManagerCallback<Bundle>, Handler)
public AccountManagerFuture<Bundle> FinishSession(Bundle arg0, Activity arg1, AccountManagerCallback<Bundle> arg2, Handler arg3)
Parameters
arg0
Bundlearg1
Activityarg2
AccountManagerCallback<Bundle>arg3
Handler
Returns
Get(Context)
public static AccountManager Get(Context arg0)
Parameters
Returns
GetAccountVisibility(Account, String)
public int GetAccountVisibility(Account arg0, String arg1)
Parameters
Returns
GetAccounts()
public Account[] GetAccounts()
Returns
GetAccountsAndVisibilityForPackage(String, String)
public Map<Account, Integer> GetAccountsAndVisibilityForPackage(String arg0, String arg1)
Parameters
Returns
GetAccountsByType(String)
public Account[] GetAccountsByType(String arg0)
Parameters
Returns
GetAccountsByTypeAndFeatures(String, String[], AccountManagerCallback<Account[]>, Handler)
public AccountManagerFuture<Account[]> GetAccountsByTypeAndFeatures(String arg0, String[] arg1, AccountManagerCallback<Account[]> arg2, Handler arg3)
Parameters
arg0
Stringarg1
String[]arg2
AccountManagerCallback<Account[]>arg3
Handler
Returns
GetAccountsByTypeForPackage(String, String)
public Account[] GetAccountsByTypeForPackage(String arg0, String arg1)
Parameters
Returns
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
Returns
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
Returns
GetAuthToken(Account, String, bool, AccountManagerCallback<Bundle>, Handler)
[Obsolete]
public AccountManagerFuture<Bundle> GetAuthToken(Account arg0, String arg1, bool arg2, AccountManagerCallback<Bundle> arg3, Handler arg4)
Parameters
Returns
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
Stringarg1
Stringarg2
String[]arg3
Activityarg4
Bundlearg5
Bundlearg6
AccountManagerCallback<Bundle>arg7
Handler
Returns
GetAuthenticatorTypes()
https://developer.android.com/reference/android/accounts/AccountManager.html#getAuthenticatorTypes()
public AuthenticatorDescription[] GetAuthenticatorTypes()
Returns
GetPackagesAndVisibilityForAccount(Account)
public Map<String, Integer> GetPackagesAndVisibilityForAccount(Account arg0)
Parameters
Returns
GetPassword(Account)
public String GetPassword(Account arg0)
Parameters
Returns
GetPreviousName(Account)
public String GetPreviousName(Account arg0)
Parameters
Returns
GetUserData(Account, String)
public String GetUserData(Account arg0, String arg1)
Parameters
Returns
HasFeatures(Account, String[], AccountManagerCallback<Boolean>, Handler)
public AccountManagerFuture<Boolean> HasFeatures(Account arg0, String[] arg1, AccountManagerCallback<Boolean> arg2, Handler arg3)
Parameters
arg0
Accountarg1
String[]arg2
AccountManagerCallback<Boolean>arg3
Handler
Returns
InvalidateAuthToken(String, String)
public void InvalidateAuthToken(String arg0, String arg1)
Parameters
IsCredentialsUpdateSuggested(Account, String, AccountManagerCallback<Boolean>, Handler)
public AccountManagerFuture<Boolean> IsCredentialsUpdateSuggested(Account arg0, String arg1, AccountManagerCallback<Boolean> arg2, Handler arg3)
Parameters
arg0
Accountarg1
Stringarg2
AccountManagerCallback<Boolean>arg3
Handler
Returns
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
Accountarg1
ArrayList<Account>arg2
String[]arg3
boolarg4
Stringarg5
Stringarg6
String[]arg7
Bundle
Returns
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
Returns
NotifyAccountAuthenticated(Account)
public bool NotifyAccountAuthenticated(Account arg0)
Parameters
Returns
PeekAuthToken(Account, String)
public String PeekAuthToken(Account arg0, String arg1)
Parameters
Returns
RemoveAccount(Account, AccountManagerCallback<Boolean>, Handler)
[Obsolete]
public AccountManagerFuture<Boolean> RemoveAccount(Account arg0, AccountManagerCallback<Boolean> arg1, Handler arg2)
Parameters
arg0
Accountarg1
AccountManagerCallback<Boolean>arg2
Handler
Returns
RemoveAccount(Account, Activity, AccountManagerCallback<Bundle>, Handler)
public AccountManagerFuture<Bundle> RemoveAccount(Account arg0, Activity arg1, AccountManagerCallback<Bundle> arg2, Handler arg3)
Parameters
arg0
Accountarg1
Activityarg2
AccountManagerCallback<Bundle>arg3
Handler
Returns
RemoveAccountExplicitly(Account)
public bool RemoveAccountExplicitly(Account arg0)
Parameters
Returns
RemoveOnAccountsUpdatedListener(OnAccountsUpdateListener)
public void RemoveOnAccountsUpdatedListener(OnAccountsUpdateListener arg0)
Parameters
RenameAccount(Account, String, AccountManagerCallback<Account>, Handler)
public AccountManagerFuture<Account> RenameAccount(Account arg0, String arg1, AccountManagerCallback<Account> arg2, Handler arg3)
Parameters
arg0
Accountarg1
Stringarg2
AccountManagerCallback<Account>arg3
Handler
Returns
SetAccountVisibility(Account, String, int)
public bool SetAccountVisibility(Account arg0, String arg1, int arg2)
Parameters
Returns
SetAuthToken(Account, String, String)
public void SetAuthToken(Account arg0, String arg1, String arg2)
Parameters
SetPassword(Account, String)
public void SetPassword(Account arg0, String arg1)
Parameters
SetUserData(Account, String, String)
public void SetUserData(Account arg0, String arg1, String arg2)
Parameters
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
Stringarg1
Stringarg2
String[]arg3
Bundlearg4
Activityarg5
AccountManagerCallback<Bundle>arg6
Handler
Returns
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
Returns
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)