to top
Android APIs
public static class

Type.Builder

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

Class Overview

Builder class for Type.

Summary

Public Constructors

? Examples
Type.Builder( RenderScript rs, Element e)
Create a new builder object.
Public Methods

? Examples
Type create()
Validate structure and create a new type.

? Examples
Type.Builder setFaces(boolean value)

? Examples
Type.Builder setMipmaps(boolean value)

? Examples
Type.Builder setX(int value)
Add a dimension to the Type.

? Examples
Type.Builder setY(int value)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Type.Builder (RenderScript rs, Element e)

Added in API level 11

Create a new builder object.

Parameters
e The element for the type to be created.

Public Methods

public Type create ()

Added in API level 11

Validate structure and create a new type.

Returns
  • Type

public Type.Builder setFaces (boolean value)

Added in API level 11

public Type.Builder setMipmaps (boolean value)

Added in API level 11

public Type.Builder setX (int value)

Added in API level 11

Add a dimension to the Type.

public Type.Builder setY (int value)

Added in API level 11

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.