Service.StopForegroundLegacy Field

Definition

Selector for #stopForeground(int): equivalent to passing false to the legacy API #stopForeground(boolean).

[Android.Runtime.Register("STOP_FOREGROUND_LEGACY", ApiSince=33)]
public const Android.App.StopForegroundFlags StopForegroundLegacy = 0;
[<Android.Runtime.Register("STOP_FOREGROUND_LEGACY", ApiSince=33)>]
val mutable StopForegroundLegacy : Android.App.StopForegroundFlags

Field Value

Value = 0
Attributes

Remarks

Selector for #stopForeground(int): equivalent to passing false to the legacy API #stopForeground(boolean).

This member is deprecated. Use #STOP_FOREGROUND_DETACH instead. The legacy behavior was inconsistent, leading to bugs around unpredictable results.

Java documentation for android.app.Service.STOP_FOREGROUND_LEGACY.

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