public interface

ResourceProto.InlineImageResourceOrBuilder

 androidx.wear.protolayout.proto.ResourceProto.InlineImageResourceOrBuilder

Subclasses:

ResourceProto.InlineImageResource, ResourceProto.InlineImageResource.Builder

Summary

Methods
public com.google.protobuf.ByteStringgetData()

 The byte array representing the image.

public ResourceProto.ImageFormatgetFormat()

 The format of the byte array data representing the image.

public intgetFormatValue()

 The format of the byte array data representing the image.

public intgetHeightPx()

 The native height of the image, in pixels.

public intgetWidthPx()

 The native width of the image, in pixels.

Methods

public com.google.protobuf.ByteString getData()

 The byte array representing the image.
 
bytes data = 1;

Returns:

The data.

public int getWidthPx()

 The native width of the image, in pixels. Only required for formats
 (e.g. IMAGE_FORMAT_RGB_565) where the image data does not include size.
 
int32 width_px = 2;

Returns:

The widthPx.

public int getHeightPx()

 The native height of the image, in pixels. Only required for formats
 (e.g. IMAGE_FORMAT_RGB_565) where the image data does not include size.
 
int32 height_px = 3;

Returns:

The heightPx.

public int getFormatValue()

 The format of the byte array data representing the image. May be left
 unspecified or set to IMAGE_FORMAT_UNDEFINED in which case the platform
 will attempt to extract this from the raw image data. If the platform does
 not support the format, the image will not be decoded or displayed.
 
.androidx.wear.protolayout.proto.ImageFormat format = 4;

Returns:

The enum numeric value on the wire for format.

public ResourceProto.ImageFormat getFormat()

 The format of the byte array data representing the image. May be left
 unspecified or set to IMAGE_FORMAT_UNDEFINED in which case the platform
 will attempt to extract this from the raw image data. If the platform does
 not support the format, the image will not be decoded or displayed.
 
.androidx.wear.protolayout.proto.ImageFormat format = 4;

Returns:

The format.