DevicePolicyManager.LockTaskFeatureNotifications 字段

定义

注意

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

在 LockTask 模式下启用通知。

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

字段值

Value = 2
属性

注解

在 LockTask 模式下启用通知。 这包括状态栏上的通知图标、启动通知和可扩展通知阴影。 请注意,“快速设置”面板保持禁用状态。 此功能标志只能与 #LOCK_TASK_FEATURE_HOME.. #setLockTaskFeatures(ComponentName, int)如果未定义#LOCK_TASK_FEATURE_HOME此功能标志,则引发 < 一个 IllegalArgumentException

适用于 . 的 android.app.admin.DevicePolicyManager.LOCK_TASK_FEATURE_NOTIFICATIONSJava 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于