Added in API level 11
Deprecated in API level 31

Type.Builder


public static class Type.Builder
extends Object

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


Builder class for Type.

Summary

Public constructors

Builder(RenderScript rs, Element e)

Create a new builder object.

Public methods

Type create()

Validate structure and create a new Type.

Type.Builder setFaces(boolean value)
Type.Builder setMipmaps(boolean value)
Type.Builder setX(int value)

Add a dimension to the Type.

Type.Builder setY(int value)
Type.Builder setYuvFormat(int yuvFormat)

Set the YUV layout for a Type.

Type.Builder setZ(int value)

Inherited methods

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(long timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

Public constructors

Builder

Added in API level 11
public Builder (RenderScript rs, 
                Element e)

Create a new builder object.

Parameters
e Element: The element for the type to be created.

Public methods

create

Added in API level 11
public Type create ()

Validate structure and create a new Type.

Returns
Type Type

setFaces

Added in API level 11
public Type.Builder setFaces (boolean value)

Parameters
value boolean

Returns
Type.Builder

setMipmaps

Added in API level 11
public Type.Builder setMipmaps (boolean value)

Parameters
value boolean

Returns
Type.Builder

setX

Added in API level 11
public Type.Builder setX (int value)

Add a dimension to the Type.

Returns
Type.Builder

setY

Added in API level 11
public Type.Builder setY (int value)

Parameters
value int

Returns
Type.Builder

setYuvFormat

Added in API level 18
Deprecated in API level 31
public Type.Builder setYuvFormat (int yuvFormat)

Set the YUV layout for a Type.

Returns
Type.Builder

setZ

Added in API level 18
Deprecated in API level 31
public Type.Builder setZ (int value)

Parameters
value int

Returns
Type.Builder