Activity.InterfaceConsts.TrimMemoryRunningCritical 字段

定义

注意

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

#onTrimMemory(int)级别:该进程不是一个可消耗的后台进程,但设备在内存上运行非常低,并且即将无法保持任何后台进程运行。

[Android.Runtime.Register("TRIM_MEMORY_RUNNING_CRITICAL")]
[System.Obsolete("This constant will be removed in the future version. Use Android.Content.TrimMemory enum directly instead of this field.", true)]
public const Android.Content.TrimMemory TrimMemoryRunningCritical = 15;
[<Android.Runtime.Register("TRIM_MEMORY_RUNNING_CRITICAL")>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Content.TrimMemory enum directly instead of this field.", true)>]
val mutable TrimMemoryRunningCritical : Android.Content.TrimMemory

字段值

Value = 15
属性

注解

#onTrimMemory(int)级别:该进程不是一个可消耗的后台进程,但设备在内存上运行非常低,并且即将无法保持任何后台进程运行。 正在运行的进程应释放尽可能多的非关键资源,以便允许在其他地方使用该内存。 下一件事将在调用 #onLowMemory() 后发生,以报告什么都不能保留在后台,这种情况可能会开始显著影响用户。

适用于 . 的 android.content.ComponentCallbacks2.TRIM_MEMORY_RUNNING_CRITICALJava 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于