共用方式為


Application.InterfaceConsts.TrimMemoryRunningCritical Field

Definition

Caution

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

Level for #onTrimMemory(int): the process is not an expendable background process, but the device is running extremely low on memory and is about to not be able to keep any background processes running.

[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

Field Value

Value = 15
Attributes

Remarks

Level for #onTrimMemory(int): the process is not an expendable background process, but the device is running extremely low on memory and is about to not be able to keep any background processes running. Your running process should free up as many non-critical resources as it can to allow that memory to be used elsewhere. The next thing that will happen after this is #onLowMemory() called to report that nothing at all can be kept in the background, a situation that can start to notably impact the user.

Java documentation for android.content.ComponentCallbacks2.TRIM_MEMORY_RUNNING_CRITICAL.

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