RemoteViews.DrawInstructions


public static final class RemoteViews.DrawInstructions
extends Object

java.lang.Object
   ↳ android.widget.RemoteViews.DrawInstructions


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

Summary

Nested classes

class RemoteViews.DrawInstructions.Builder

Builder class for DrawInstructions objects. 

Public methods

List<byte[]> getBytes()

Returns the list of serialized draw instructions.

static long getSupportedVersion()

Version number of DrawInstructions currently supported.

Inherited methods

Public methods

getBytes

Added in version 37.2
public List<byte[]> getBytes ()

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.

Returns
List<byte[]> 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
public static long getSupportedVersion ()

Version number of DrawInstructions currently supported.

Returns
long