Notification.ForegroundServiceImmediate 字段

定义

注意

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_IMMEDIATEJava 文档

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

适用于