Added in API level 35

DrawInstructions


class DrawInstructions
kotlin.Any
   ↳ android.widget.RemoteViews.DrawInstructions

A data parcel that carries the instructions to draw the RemoteViews, as an alternative to XML layout.

Summary

Nested classes

Builder class for DrawInstructions objects.

Public methods
MutableList<ByteArray!>

Returns the list of serialized draw instructions.

static Long

Version number of DrawInstructions currently supported.

Public methods

getBytes

fun getBytes(): MutableList<ByteArray!>

Returns the list of serialized draw instructions.

Each element in the list is a standalone byte[] representing a separate serialized draw instruction payload.

Note: This method is used to retrieve the raw byte payloads of the draw instructions (e.g. for custom rendering by passing them to a RemoteCompose player) rather than using the high-level RemoteViews inflation mechanism.

Return
MutableList<ByteArray!> The list of serialized draw instructions, where each element is a standalone byte[] representing a separate serialized draw instruction.
This value cannot be null.

getSupportedVersion

Added in API level 35
static fun getSupportedVersion(): Long

Version number of DrawInstructions currently supported.