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

IDictionary<Account,Integer>

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

Attributes

Remarks

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