Skip to content

Most visited

Recently visited

navigation

Type.Builder

public static class Type.Builder
extends Object

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


Builder class for Type.

Summary

Public constructors

Type.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

From class java.lang.Object

Public constructors

Type.Builder

added in version 23.0.0
Type.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 version 23.0.0
Type create ()

Validate structure and create a new Type.

Returns
Type Type

setFaces

added in version 23.0.0
Type.Builder setFaces (boolean value)

Parameters
value boolean

Returns
Type.Builder

setMipmaps

added in version 23.0.0
Type.Builder setMipmaps (boolean value)

Parameters
value boolean

Returns
Type.Builder

setX

added in version 23.0.0
Type.Builder setX (int value)

Add a dimension to the Type.

Returns
Type.Builder

setY

added in version 23.0.0
Type.Builder setY (int value)

Parameters
value int

Returns
Type.Builder

setYuvFormat

added in version 23.0.0
Type.Builder setYuvFormat (int yuvFormat)

Set the YUV layout for a Type.

Parameters
yuvFormat int: YV12 or NV21

Returns
Type.Builder

setZ

added in version 23.0.0
Type.Builder setZ (int value)

Parameters
value int

Returns
Type.Builder

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience.
(Sep 2017 survey)