Service.StopForegroundDetach 字段
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
This constant will be removed in the future version. Use Android.App.StopForegroundFlags enum directly instead of this field.
选择器: #stopForeground(int)如果已设置,则之前提供的 #startForeground 通知将从服务的生命周期中分离。
[Android.Runtime.Register("STOP_FOREGROUND_DETACH", ApiSince=24)]
[System.Obsolete("This constant will be removed in the future version. Use Android.App.StopForegroundFlags enum directly instead of this field.", true)]
public const Android.App.StopForegroundFlags StopForegroundDetach = 2;
[<Android.Runtime.Register("STOP_FOREGROUND_DETACH", ApiSince=24)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.App.StopForegroundFlags enum directly instead of this field.", true)>]
val mutable StopForegroundDetach : Android.App.StopForegroundFlags
字段值
Value = 2- 特性
注解
stopForeground(int):如果已设置,则之前提供给 startForeground(int, Notification) 的通知将从服务的生命周期中分离。 即使服务停止并销毁,通知也会保持显示状态。
Android 参考。android.app.Service.STOP_FOREGROUND_DETACH
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。