AccountManager.GetAccountsAndVisibilityForPackage(String, String) Method

Definition

Gets all accounts of given type and their visibility for specific package.

[Android.Runtime.Register("getAccountsAndVisibilityForPackage", "(Ljava/lang/String;Ljava/lang/String;)Ljava/util/Map;", "GetGetAccountsAndVisibilityForPackage_Ljava_lang_String_Ljava_lang_String_Handler", ApiSince=26)]
public virtual System.Collections.Generic.IDictionary<Android.Accounts.Account,Java.Lang.Integer>? GetAccountsAndVisibilityForPackage (string? packageName, string? accountType);
[<Android.Runtime.Register("getAccountsAndVisibilityForPackage", "(Ljava/lang/String;Ljava/lang/String;)Ljava/util/Map;", "GetGetAccountsAndVisibilityForPackage_Ljava_lang_String_Ljava_lang_String_Handler", ApiSince=26)>]
abstract member GetAccountsAndVisibilityForPackage : string * string -> System.Collections.Generic.IDictionary<Android.Accounts.Account, Java.Lang.Integer>
override this.GetAccountsAndVisibilityForPackage : string * string -> System.Collections.Generic.IDictionary<Android.Accounts.Account, Java.Lang.Integer>

Parameters

packageName
String

Package name

accountType
String

Account type

Returns

Map with visibility for all accounts of given type See #getAccountVisibility for possible values

Attributes

Remarks

Gets all accounts of given type and their visibility for specific package. This method requires the caller to have a signature match with the authenticator that manages accountType. It is a helper method which combines calls to #getAccountsByType by authenticator and #getAccountVisibility for every returned account.

Java documentation for android.accounts.AccountManager.getAccountsAndVisibilityForPackage(java.lang.String, java.lang.String).

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