# RemoteViews.DrawInstructions.Builder

Added in[API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# Builder

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/widget/RemoteViews.DrawInstructions.Builder "View this page in Java")  

```
class Builder
```

|---|------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                             ||
| ↳ | [android.widget.RemoteViews.DrawInstructions.Builder](https://developer.android.com/reference/kotlin/android/widget/RemoteViews.DrawInstructions.Builder#) |

Builder class for[DrawInstructions](https://developer.android.com/reference/kotlin/android/widget/RemoteViews.DrawInstructions)objects.

## Summary

|                                                                                                                                                                                     Public constructors                                                                                                                                                                                      ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [Builder](https://developer.android.com/reference/kotlin/android/widget/RemoteViews.DrawInstructions.Builder#Builder(kotlin.collections.MutableList))`(`instructions:` `[MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)<[ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)!>`)` Constructor. |

|                                                                                                                                                                                    Public methods                                                                                                                                                                                    ||
|----------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [RemoteViews.DrawInstructions](https://developer.android.com/reference/kotlin/android/widget/RemoteViews.DrawInstructions) | [build](https://developer.android.com/reference/kotlin/android/widget/RemoteViews.DrawInstructions.Builder#build())`()` Creates a[DrawInstructions](https://developer.android.com/reference/kotlin/android/widget/RemoteViews.DrawInstructions)instance. |

## Public constructors

### Builder

Added in[API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
Builder(instructions: MutableList<ByteArray!>)
```

Constructor.

|                                                                                                                                      Parameters                                                                                                                                      ||
|----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `instructions` | [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\<[ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)!\>:Information to draw the RemoteViews. This value cannot be`null`. |

## Public methods

### build

Added in[API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun build(): RemoteViews.DrawInstructions
```

Creates a[DrawInstructions](https://developer.android.com/reference/kotlin/android/widget/RemoteViews.DrawInstructions)instance.

|                                                                         Return                                                                          ||
|----------------------------------------------------------------------------------------------------------------------------|-----------------------------|
| [RemoteViews.DrawInstructions](https://developer.android.com/reference/kotlin/android/widget/RemoteViews.DrawInstructions) | This value cannot be`null`. |