Notification.ForegroundServiceImmediate 字段
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
This constant will be removed in the future version. Use Android.App.NotificationForegroundService enum directly instead of this field.
如果已使用此行为的 setForegroundServiceBehavior() 生成与启动前台服务的通知,即使默认行为将延迟可见性短时间,通知的显示也会立即显示。
[Android.Runtime.Register("FOREGROUND_SERVICE_IMMEDIATE", ApiSince=31)]
[System.Obsolete("This constant will be removed in the future version. Use Android.App.NotificationForegroundService enum directly instead of this field.", true)]
public const Android.App.NotificationForegroundService ForegroundServiceImmediate = 1;
[<Android.Runtime.Register("FOREGROUND_SERVICE_IMMEDIATE", ApiSince=31)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.App.NotificationForegroundService enum directly instead of this field.", true)>]
val mutable ForegroundServiceImmediate : Android.App.NotificationForegroundService
字段值
Value = 1实现
- 属性
注解
如果已使用此行为的 setForegroundServiceBehavior() 生成与启动前台服务的通知,即使默认行为将延迟可见性短时间,通知的显示也会立即显示。
适用于 . 的 android.app.Notification.FOREGROUND_SERVICE_IMMEDIATE
Java 文档
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。