HardwareRenderer.ClearContent Method

Definition

Destroys all the display lists associated with the current rendering content.

[Android.Runtime.Register("clearContent", "()V", "GetClearContentHandler", ApiSince=29)]
public virtual void ClearContent ();
[<Android.Runtime.Register("clearContent", "()V", "GetClearContentHandler", ApiSince=29)>]
abstract member ClearContent : unit -> unit
override this.ClearContent : unit -> unit
Attributes

Remarks

Destroys all the display lists associated with the current rendering content. This includes releasing a reference to the current content root RenderNode. It will therefore be necessary to call #setContentRoot(RenderNode) in order to resume rendering after calling this, along with re-recording the display lists for the RenderNode tree.

It is recommended, but not necessary, to use this in combination with lifecycle events such as Activity#onStop() and Activity#onStart() or in response to android.content.ComponentCallbacks2#onTrimMemory(int) signals such as android.content.ComponentCallbacks2#TRIM_MEMORY_UI_HIDDEN

See also #stop().

Java documentation for android.graphics.HardwareRenderer.clearContent().

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