Udostępnij za pośrednictwem


HardwareRenderer.SetContentRoot(RenderNode) Method

Definition

Sets the content root to render.

[Android.Runtime.Register("setContentRoot", "(Landroid/graphics/RenderNode;)V", "GetSetContentRoot_Landroid_graphics_RenderNode_Handler", ApiSince=29)]
public virtual void SetContentRoot (Android.Graphics.RenderNode? content);
[<Android.Runtime.Register("setContentRoot", "(Landroid/graphics/RenderNode;)V", "GetSetContentRoot_Landroid_graphics_RenderNode_Handler", ApiSince=29)>]
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 RenderNode's contained within the content node, will be applied whenever a new FrameRenderRequest is issued via #createRenderRequest() and FrameRenderRequest#syncAndDraw().

Java documentation for android.graphics.HardwareRenderer.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