Stay organized with collections
Save and categorize content based on your preferences.
Builder
class Builder
Builder class for DrawInstructions
objects.
Summary
Public constructors |
Constructor.
|
Public constructors
Public methods
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# RemoteViews.DrawInstructions.Builder\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nBuilder\n=======\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/widget/RemoteViews.DrawInstructions.Builder \"View this page in Java\") \n\n```\nclass Builder\n```\n\n|---|----------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.widget.RemoteViews.DrawInstructions.Builder](#) |\n\nBuilder class for [DrawInstructions](/reference/kotlin/android/widget/RemoteViews.DrawInstructions) objects.\n\nSummary\n-------\n\n| Public constructors ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [Builder](#Builder(kotlin.collections.MutableList))`(`instructions:` `[MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\u003c[ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)!\u003e`)` Constructor. |\n\n| Public methods ||\n|-----------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------|\n| [RemoteViews.DrawInstructions](/reference/kotlin/android/widget/RemoteViews.DrawInstructions) | [build](#build())`()` Creates a [DrawInstructions](/reference/kotlin/android/widget/RemoteViews.DrawInstructions) instance. |\n\nPublic constructors\n-------------------\n\n### Builder\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nBuilder(instructions: MutableList\u003cByteArray!\u003e)\n```\n\nConstructor.\n\n| Parameters ||\n|----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `instructions` | [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\\\u003c[ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)!\\\u003e: Information to draw the RemoteViews. This value cannot be `null`. |\n\nPublic methods\n--------------\n\n### build\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun build(): RemoteViews.DrawInstructions\n```\n\nCreates a [DrawInstructions](/reference/kotlin/android/widget/RemoteViews.DrawInstructions) instance.\n\n| Return ||\n|-----------------------------------------------------------------------------------------------|------------------------------|\n| [RemoteViews.DrawInstructions](/reference/kotlin/android/widget/RemoteViews.DrawInstructions) | This value cannot be `null`. |"]]