AccountManager.GetAccountsAndVisibilityForPackage(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.