Added in API level 11
Deprecated in API level 31

Builder


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

Builder class for producing complex elements with matching field and name pairs. The builder starts empty. The order in which elements are added is retained for the layout in memory.

Summary

Public constructors

Create a builder object.

Public methods
open Element.Builder!
add(element: Element!, name: String!, arraySize: Int)

Add an array of elements to this element.

open Element.Builder!
add(element: Element!, name: String!)

Add a single element to this Element.

open Element!

Create the element from this builder.

Public constructors

Builder

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

Create a builder object.

Parameters
rs RenderScript!:

Public methods

add

Added in API level 11
open fun add(
    element: Element!,
    name: String!,
    arraySize: Int
): Element.Builder!

Deprecated: Deprecated in Java.

Add an array of elements to this element.

Parameters
element Element!:
name String!:
arraySize Int:

add

Added in API level 11
open fun add(
    element: Element!,
    name: String!
): Element.Builder!

Deprecated: Deprecated in Java.

Add a single element to this Element.

Parameters
element Element!:
name String!:

create

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

Deprecated: Deprecated in Java.

Create the element from this builder.

Return
Element! Element