Udostępnij za pośrednictwem


Service.StopForegroundDetach Field

Definition

Caution

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

Selector for #stopForeground(int): if set, the notification previously supplied to #startForeground will be detached from the service's lifecycle.

[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

Field Value

Value = 2
Attributes

Remarks

Selector for #stopForeground(int): if set, the notification previously supplied to #startForeground will be detached from the service's lifecycle. The notification will remain shown even after the service is stopped and destroyed.

Java documentation for android.app.Service.STOP_FOREGROUND_DETACH.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to