共用方式為


AccountManager.PackageNameKeyLegacyVisible Field

Definition

Key to set visibility for applications which satisfy one of the following conditions: <ul> <li>Target API level below android.os.Build.VERSION_CODES#O and have deprecated android.Manifest.permission#GET_ACCOUNTS permission.

[Android.Runtime.Register("PACKAGE_NAME_KEY_LEGACY_VISIBLE", ApiSince=26)]
public const string PackageNameKeyLegacyVisible;
[<Android.Runtime.Register("PACKAGE_NAME_KEY_LEGACY_VISIBLE", ApiSince=26)>]
val mutable PackageNameKeyLegacyVisible : string

Field Value

Attributes

Remarks

Key to set visibility for applications which satisfy one of the following conditions: <ul> <li>Target API level below android.os.Build.VERSION_CODES#O and have deprecated android.Manifest.permission#GET_ACCOUNTS permission. </li> <li> Have android.Manifest.permission#GET_ACCOUNTS_PRIVILEGED permission. </li> <li> Have the same signature as authenticator. </li> <li> Have android.Manifest.permission#READ_CONTACTS permission and account type may be associated with contacts data - (verified by android.Manifest.permission#WRITE_CONTACTS permission check for the authenticator). </li> </ul> See #getAccountVisibility. If the value was not set by authenticator #VISIBILITY_USER_MANAGED_VISIBLE is used.

Java documentation for android.accounts.AccountManager.PACKAGE_NAME_KEY_LEGACY_VISIBLE.

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