ApplicationStartInfo.WasForceStopped Method
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.
Informs whether this is the first process launch for an app since it was
ApplicationInfo#FLAG_STOPPED force-stopped
for some reason.
[Android.Runtime.Register("wasForceStopped", "()Z", "", ApiSince=35)]
public bool WasForceStopped ();
[<Android.Runtime.Register("wasForceStopped", "()Z", "", ApiSince=35)>]
member this.WasForceStopped : unit -> bool
Returns
true
if this is the first process launch of the app after having been
stopped, false
otherwise.
- Attributes
Remarks
Informs whether this is the first process launch for an app since it was ApplicationInfo#FLAG_STOPPED force-stopped
for some reason. This allows the app to know if it should re-register for any alarms, jobs and other callbacks that were cleared when the app was force-stopped.
Java documentation for android.app.ApplicationStartInfo.wasForceStopped()
.
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.