Service.StopForegroundLegacy Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.