Builder
open classBuilder
kotlin.Any | |
↳ | android.renderscript.Type.Builder |
Builder class for Type.
Summary
Public constructors | |
---|---|
Builder(rs: RenderScript!, e: Element!) Create a new builder object. |
Public methods | |
---|---|
open Type! |
create() Validate structure and create a new Type. |
open Type.Builder! | |
open Type.Builder! |
setMipmaps(value: Boolean) |
open Type.Builder! |
Add a dimension to the Type. |
open Type.Builder! | |
open Type.Builder! |
setYuvFormat(yuvFormat: Int) Set the YUV layout for a Type. |
open Type.Builder! |
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 funcreate(): Type!
Deprecated: Deprecated in Java.
Validate structure and create a new Type.
Return | |
---|---|
Type! |
Type |
setFaces
Added in API level 11
open funsetFaces(value: Boolean): Type.Builder!
Deprecated: Deprecated in Java.
setMipmaps
Added in API level 11
open funsetMipmaps(value: Boolean): Type.Builder!
Deprecated: Deprecated in Java.
setX
Added in API level 11
open funsetX(value: Int): Type.Builder!
Deprecated: Deprecated in Java.
Add a dimension to the Type.
Parameters | |
---|---|
value |
Int: |
setYuvFormat
open funsetYuvFormat(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 . |