다음을 통해 공유


ApplicationStartInfo.WasForceStopped Method

Definition

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.

Applies to