共用方式為


AccountManager.GetPackagesAndVisibilityForAccount(Account) Method

Definition

Returns package names and visibility which were explicitly set for given account.

[Android.Runtime.Register("getPackagesAndVisibilityForAccount", "(Landroid/accounts/Account;)Ljava/util/Map;", "GetGetPackagesAndVisibilityForAccount_Landroid_accounts_Account_Handler", ApiSince=26)]
public virtual System.Collections.Generic.IDictionary<string,Java.Lang.Integer>? GetPackagesAndVisibilityForAccount (Android.Accounts.Account? account);
[<Android.Runtime.Register("getPackagesAndVisibilityForAccount", "(Landroid/accounts/Account;)Ljava/util/Map;", "GetGetPackagesAndVisibilityForAccount_Landroid_accounts_Account_Handler", ApiSince=26)>]
abstract member GetPackagesAndVisibilityForAccount : Android.Accounts.Account -> System.Collections.Generic.IDictionary<string, Java.Lang.Integer>
override this.GetPackagesAndVisibilityForAccount : Android.Accounts.Account -> System.Collections.Generic.IDictionary<string, Java.Lang.Integer>

Parameters

account
Account

The account for which visibility data should be returned

Returns

Map from package names to visibility for given account

Attributes

Remarks

Returns package names and visibility which were explicitly set for given account.

This method requires the caller to have a signature match with the authenticator that owns the specified account.

Java documentation for android.accounts.AccountManager.getPackagesAndVisibilityForAccount(android.accounts.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.

Applies to