共用方式為


ApplicationExitInfo.ReasonUserRequested Field

Definition

Caution

This constant will be removed in the future version. Use Android.App.ApplicationExitInfoReason enum directly instead of this field.

Application process was killed because of the user request, for example, user clicked the "Force stop" button of the application in the Settings, or removed the application away from Recents.

[Android.Runtime.Register("REASON_USER_REQUESTED", ApiSince=30)]
[System.Obsolete("This constant will be removed in the future version. Use Android.App.ApplicationExitInfoReason enum directly instead of this field.", true)]
public const Android.App.ApplicationExitInfoReason ReasonUserRequested = 10;
[<Android.Runtime.Register("REASON_USER_REQUESTED", ApiSince=30)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.App.ApplicationExitInfoReason enum directly instead of this field.", true)>]
val mutable ReasonUserRequested : Android.App.ApplicationExitInfoReason

Field Value

Value = 10

Implements

Attributes

Remarks

Application process was killed because of the user request, for example, user clicked the "Force stop" button of the application in the Settings, or removed the application away from Recents.

Prior to android.os.Build.VERSION_CODES#UPSIDE_DOWN_CAKE, one of the uses of this reason was to indicate that an app was killed due to it being updated or any of its component states have changed without android.content.pm.PackageManager#DONT_KILL_APP

Java documentation for android.app.ApplicationExitInfo.REASON_USER_REQUESTED.

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