Language

Service.StopForegroundLegacy Field

Definition

This constant was deprecated in API level 33.

[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

This constant was deprecated in API level 33. Use STOP_FOREGROUND_DETACH instead. The legacy behavior was inconsistent, leading to bugs around unpredictable results.

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

Android reference 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