Udostępnij za pośrednictwem


FragmentController.DispatchTrimMemory(Int32) Method

Definition

Lets all Fragments managed by the controller's FragmentManager know they should trim their memory usage.

[Android.Runtime.Register("dispatchTrimMemory", "(I)V", "GetDispatchTrimMemory_IHandler", ApiSince=23)]
public virtual void DispatchTrimMemory (int level);
[<Android.Runtime.Register("dispatchTrimMemory", "(I)V", "GetDispatchTrimMemory_IHandler", ApiSince=23)>]
abstract member DispatchTrimMemory : int -> unit
override this.DispatchTrimMemory : int -> unit

Parameters

level
Int32
Attributes

Remarks

Lets all Fragments managed by the controller's FragmentManager know they should trim their memory usage.

Call when the Fragment can release allocated memory [such as if the Fragment is in the background].

Java documentation for android.app.FragmentController.dispatchTrimMemory(int).

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