Added in API level 11
Deprecated in API level 31

Builder


open class Builder
kotlin.Any
   ↳ android.renderscript.Type.Builder

Builder class for Type.

Summary

Public constructors

Create a new builder object.

Public methods
open Type!

Validate structure and create a new Type.

open Type.Builder!
setFaces(value: Boolean)

open Type.Builder!

open Type.Builder!
setX(value: Int)

Add a dimension to the Type.

open Type.Builder!
setY(value: Int)

open Type.Builder!
setYuvFormat(yuvFormat: Int)

Set the YUV layout for a Type.

open Type.Builder!
setZ(value: Int)

Public constructors

Builder

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

Create a new builder object.

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

Public methods

create

Added in API level 11
open fun create(): Type!

Deprecated: Deprecated in Java.

Validate structure and create a new Type.

Return
Type! Type

setFaces

Added in API level 11
open fun setFaces(value: Boolean): Type.Builder!

Deprecated: Deprecated in Java.

setMipmaps

Added in API level 11
open fun setMipmaps(value: Boolean): Type.Builder!

Deprecated: Deprecated in Java.

setX

Added in API level 11
open fun setX(value: Int): Type.Builder!

Deprecated: Deprecated in Java.

Add a dimension to the Type.

Parameters
value Int:

setY

Added in API level 11
open fun setY(value: Int): Type.Builder!

Deprecated: Deprecated in Java.

setYuvFormat

Added in API level 18
Deprecated in API level 31
open fun setYuvFormat(yuvFormat: Int): Type.Builder!

Deprecated: Deprecated in Java.

Set the YUV layout for a Type.

Parameters
yuvFormat Int: android.graphics.ImageFormat#YV12, android.graphics.ImageFormat#NV21, or android.graphics.ImageFormat#YUV_420_888.

setZ

Added in API level 18
Deprecated in API level 31
open fun setZ(value: Int): Type.Builder!

Deprecated: Deprecated in Java.