Share via


PackagePolicy.PackagePolicyBlocklist 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_BLOCKLIST", 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 PackagePolicyBlocklist = 1;
[<Android.Runtime.Register("PACKAGE_POLICY_BLOCKLIST", 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 PackagePolicyBlocklist : Android.App.Admin.PackagePolicyMode

Field Value

Value = 1

Implements

Attributes

Remarks

PackagePolicy type indicator for PackagePolicy

This constant indicates that all packages are allowed except for the packages returned by PackagePolicy#getPackageNames(), which acts as a denylist.

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

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