語言

ApplicationExitInfo.ReasonLowMemory 欄位

定義

警告

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

應用程式程序被系統低記憶體殺手殺死,意即系統在殺死時處於記憶體壓力之下。

[Android.Runtime.Register("REASON_LOW_MEMORY", 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 ReasonLowMemory = 3;
[<Android.Runtime.Register("REASON_LOW_MEMORY", 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 ReasonLowMemory : Android.App.ApplicationExitInfoReason

欄位值

Value = 3

實作

屬性

備註

應用程式程序被系統低記憶體殺手殺死,意即系統在殺死時處於記憶體壓力之下。 並非所有裝置都支援報告REASON_LOW_MEMORY;在沒有此類支援的裝置上,當程序因記憶體壓力而終止時,getReason() 會回傳 REASON_SIGNALED,getStatus() 則會回傳 OsConstants.SIGKILL 值。 應用程式應使用 ActivityManager.isLowMemoryKillReportSupported() 來檢查裝置是否支援REASON_LOW_MEMORY回報。

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

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

適用於