Deprecated in API level 31

Element.Builder


public static class Element.Builder
extends Object

java.lang.Object
   ↳ android.renderscript.Element.Builder


Builder class for producing complex elements with matching field and name pairs. The builder starts empty. The order in which elements are added is retained for the layout in memory.

Summary

Public constructors

Builder(RenderScript rs)

Create a builder object.

Public methods

Element.Builder add(Element element, String name)

Add a single element to this Element.

Element.Builder add(Element element, String name, int arraySize)

Add an array of elements to this element.

Element create()

Create the element from this builder.

Inherited methods

Public constructors

Builder


Deprecated in API level 31
public Builder (RenderScript rs)

Create a builder object.

Public methods

add


Deprecated in API level 31
public Element.Builder add (Element element, 
                String name)

Add a single element to this Element.

Returns
Element.Builder

add


Deprecated in API level 31
public Element.Builder add (Element element, 
                String name, 
                int arraySize)

Add an array of elements to this element.

Returns
Element.Builder

create


Deprecated in API level 31
public Element create ()

Create the element from this builder.

Returns
Element Element