Notification.ForegroundServiceDeferred 字段
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
This constant will be removed in the future version. Use Android.App.NotificationForegroundService enum directly instead of this field.
如果使用 Notification.Builder.setForegroundServiceBehavior(int) 生成了与启动前台服务的通知,则通知的显示通常会在短时间内被禁止显示,以避免对用户造成视觉干扰。
[Android.Runtime.Register("FOREGROUND_SERVICE_DEFERRED", 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 ForegroundServiceDeferred = 2;
[<Android.Runtime.Register("FOREGROUND_SERVICE_DEFERRED", 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 ForegroundServiceDeferred : Android.App.NotificationForegroundService
字段值
Value = 2实现
- 特性
注解
如果使用 Notification.Builder.setForegroundServiceBehavior(int) 生成了与启动前台服务的通知,则通知的显示通常会在短时间内被禁止显示,以避免对用户造成视觉干扰。 值为下列值之一:FOREGROUND_SERVICE_DEFAULT FOREGROUND_SERVICE_IMMEDIATE FOREGROUND_SERVICE_DEFERRED
Android 参考。android.app.Notification.FOREGROUND_SERVICE_DEFERRED
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。