Compartilhar via


PackagePolicy.PackagePolicyAllowlist Field

Definition

Caution

This constant will be removed in the future version. Use Android.App.Admin.PackagePolicyMode enum directly instead of this field.

PackagePolicy type indicator for PackagePolicy

[Android.Runtime.Register("PACKAGE_POLICY_ALLOWLIST", ApiSince=34)]
[System.Obsolete("This constant will be removed in the future version. Use Android.App.Admin.PackagePolicyMode enum directly instead of this field.", true)]
public const Android.App.Admin.PackagePolicyMode PackagePolicyAllowlist = 3;
[<Android.Runtime.Register("PACKAGE_POLICY_ALLOWLIST", ApiSince=34)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.App.Admin.PackagePolicyMode enum directly instead of this field.", true)>]
val mutable PackagePolicyAllowlist : Android.App.Admin.PackagePolicyMode

Field Value

Value = 3

Implements

Attributes

Remarks

PackagePolicy type indicator for PackagePolicy

This constant indicates that all packages are denied except for the packages returned by PackagePolicy#getPackageNames(), which acts as an allowlist.

Java documentation for android.app.admin.PackagePolicy.PACKAGE_POLICY_ALLOWLIST.

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