FragmentController.DispatchTrimMemory(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.