to top
Android APIs
public static class

Element.Builder

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

Class Overview

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

? Examples
Element.Builder( RenderScript rs)
Create a builder object.
Public Methods

? Examples
Element.Builder add( Element element, String name)
Add a single element to this Element.

? Examples
Element.Builder add( Element element, String name, int arraySize)
Add an array of elements to this element.

? Examples
Element create()
Create the element from this builder.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Element.Builder (RenderScript rs)

Added in API level 11

Create a builder object.

Public Methods

public Element.Builder add (Element element, String name)

Added in API level 11

Add a single element to this Element.

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

Added in API level 11

Add an array of elements to this element.

public Element create ()

Added in API level 11

Create the element from this builder.

Returns
  • Element
No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.