语言

PackagePolicy.PackagePolicyAllowlistAndSystem 字段

定义

注意

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

PackagePolicy 类型指示器 PackagePolicy

[Android.Runtime.Register("PACKAGE_POLICY_ALLOWLIST_AND_SYSTEM", 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 PackagePolicyAllowlistAndSystem = 2;
[<Android.Runtime.Register("PACKAGE_POLICY_ALLOWLIST_AND_SYSTEM", 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 PackagePolicyAllowlistAndSystem : Android.App.Admin.PackagePolicyMode

字段值

Value = 2

实现

特性

注解

PackagePolicy 类型指示器 PackagePolicy

此常量指示除了返回 PackagePolicy#getPackageNames()的包之外,还允许系统包,这些包充当允许列表。

接受 PackagePolicy 的函数将进一步阐明如何解释此策略。

Java文档android.app.admin.PackagePolicy.PACKAGE_POLICY_ALLOWLIST_AND_SYSTEM。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于