Most visited

Recently visited

Element.Builder

public static class Element.Builder
extends Object

java.lang.Object
   ↳ android.support.v8.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

Element.Builder(RenderScript rs)

Create a builder object.

Public methods

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

Add an array of elements to this element.

Element.Builder add(Element element, String name)

Add a single element to this Element.

Element create()

Create the element from this builder.

Inherited methods

From class java.lang.Object

Public constructors

Element.Builder

Element.Builder (RenderScript rs)

Create a builder object.

Public methods

add

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

Add an array of elements to this element.

Returns
Element.Builder

add

Element.Builder add (Element element, 
                String name)

Add a single element to this Element.

Returns
Element.Builder

create

Element create ()

Create the element from this builder.

Returns
Element Element

Hooray!