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 |
Public methods | |
|---|---|
List<byte[]>
|
getBytes()
Returns the list of serialized draw instructions. |
static
long
|
getSupportedVersion()
Version number of |
Inherited methods | |
|---|---|
Public methods
getBytes
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
public static long getSupportedVersion ()
Version number of DrawInstructions currently supported.
| Returns | |
|---|---|
long |
|
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 2026-08-28 UTC.