Share via


HardwareBufferRenderer.SetContentRoot(RenderNode) Method

Definition

Sets the content root to render.

[Android.Runtime.Register("setContentRoot", "(Landroid/graphics/RenderNode;)V", "GetSetContentRoot_Landroid_graphics_RenderNode_Handler", ApiSince=34)]
public virtual void SetContentRoot (Android.Graphics.RenderNode? content);
[<Android.Runtime.Register("setContentRoot", "(Landroid/graphics/RenderNode;)V", "GetSetContentRoot_Landroid_graphics_RenderNode_Handler", ApiSince=34)>]
abstract member SetContentRoot : Android.Graphics.RenderNode -> unit
override this.SetContentRoot : Android.Graphics.RenderNode -> unit

Parameters

content
RenderNode

The content to set as the root RenderNode. If null the content root is removed and the renderer will draw nothing.

Attributes

Remarks

Sets the content root to render. It is not necessary to call this whenever the content recording changes. Any mutations to the RenderNode content, or any of the RenderNodes contained within the content node, will be applied whenever a new RenderRequest is issued via #obtainRenderRequest() and RenderRequest#draw(Executor, Consumer).

Java documentation for android.graphics.HardwareBufferRenderer.setContentRoot(android.graphics.RenderNode).

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