語言

Application.InterfaceConsts.TrimMemoryRunningLow 欄位

定義

對於 #onTrimMemory(int):該程序不是可拋棄的背景程序,但裝置記憶體不足。

[Android.Runtime.Register("TRIM_MEMORY_RUNNING_LOW")]
public const Android.Content.TrimMemory TrimMemoryRunningLow = 10;
[<Android.Runtime.Register("TRIM_MEMORY_RUNNING_LOW")>]
val mutable TrimMemoryRunningLow : Android.Content.TrimMemory

欄位值

Value = 10
屬性

備註

此常數在 API 等級 35 中被棄用。 自 API 等級 34 起,應用程式不再收到此層級通知

onTrimMemory(int) 的等級:程序不是可拋棄的背景程序,但裝置記憶體不足。 你的執行程序應該釋放不必要的資源,讓這些記憶體能被用在其他地方。

Android 參考資料。android.content.ComponentCallbacks2.TRIM_MEMORY_RUNNING_LOW

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

適用於