語言

ApplicationExitInfo.ReasonUserRequested 欄位

定義

警告

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

應用程式程序因使用者請求而被終止,例如使用者在設定中點擊應用程式的「強制停止」按鈕,或將應用程式從最近資料中移除。

[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

欄位值

Value = 10

實作

屬性

備註

應用程式程序因使用者請求而被終止,例如使用者在設定中點擊應用程式的「強制停止」按鈕,或將應用程式從最近資料中移除。 在Build.VERSION_CODES之前。UPSIDE_DOWN_CAKE,這個理由的一個用法是表示應用程式因更新而被關閉,或其任何組件狀態未經PackageManager.DONT_KILL_APP

Android 參考資料。android.app.ApplicationExitInfo.REASON_USER_REQUESTED

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於