public interface

LayoutElementProto.ImageOrBuilder

 androidx.wear.protolayout.proto.LayoutElementProto.ImageOrBuilder

Subclasses:

LayoutElementProto.Image, LayoutElementProto.Image.Builder

Summary

Methods
public LayoutElementProto.ColorFiltergetColorFilter()

 Filtering parameters for this image.

public LayoutElementProto.ContentScaleModePropgetContentScaleMode()

 How to scale the image resource inside the bounds specified by width/height
 if its size does not match those bounds.

public DimensionProto.ImageDimensiongetHeight()

 The height of this image.

public ModifiersProto.ModifiersgetModifiers()

 Modifiers for this element.

public TypesProto.StringPropgetResourceId()

 The resource_id of the image to render.

public DimensionProto.ImageDimensiongetWidth()

 The width of this image.

public booleanhasColorFilter()

 Filtering parameters for this image.

public booleanhasContentScaleMode()

 How to scale the image resource inside the bounds specified by width/height
 if its size does not match those bounds.

public booleanhasHeight()

 The height of this image.

public booleanhasModifiers()

 Modifiers for this element.

public booleanhasResourceId()

 The resource_id of the image to render.

public booleanhasWidth()

 The width of this image.

Methods

public boolean hasResourceId()

 The resource_id of the image to render. This must exist in the supplied
 resource bundle.
 
.androidx.wear.protolayout.proto.StringProp resource_id = 1;

Returns:

Whether the resourceId field is set.

public TypesProto.StringProp getResourceId()

 The resource_id of the image to render. This must exist in the supplied
 resource bundle.
 
.androidx.wear.protolayout.proto.StringProp resource_id = 1;

Returns:

The resourceId.

public boolean hasWidth()

 The width of this image. If not defined, the image will not be rendered.
 
.androidx.wear.protolayout.proto.ImageDimension width = 2;

Returns:

Whether the width field is set.

 The width of this image. If not defined, the image will not be rendered.
 
.androidx.wear.protolayout.proto.ImageDimension width = 2;

Returns:

The width.

public boolean hasHeight()

 The height of this image. If not defined, the image will not be rendered.
 
.androidx.wear.protolayout.proto.ImageDimension height = 3;

Returns:

Whether the height field is set.

 The height of this image. If not defined, the image will not be rendered.
 
.androidx.wear.protolayout.proto.ImageDimension height = 3;

Returns:

The height.

public boolean hasContentScaleMode()

 How to scale the image resource inside the bounds specified by width/height
 if its size does not match those bounds. Defaults to
 CONTENT_SCALE_MODE_FIT.
 
.androidx.wear.protolayout.proto.ContentScaleModeProp content_scale_mode = 4;

Returns:

Whether the contentScaleMode field is set.

public LayoutElementProto.ContentScaleModeProp getContentScaleMode()

 How to scale the image resource inside the bounds specified by width/height
 if its size does not match those bounds. Defaults to
 CONTENT_SCALE_MODE_FIT.
 
.androidx.wear.protolayout.proto.ContentScaleModeProp content_scale_mode = 4;

Returns:

The contentScaleMode.

public boolean hasModifiers()

 Modifiers for this element.
 
.androidx.wear.protolayout.proto.Modifiers modifiers = 5;

Returns:

Whether the modifiers field is set.

public ModifiersProto.Modifiers getModifiers()

 Modifiers for this element.
 
.androidx.wear.protolayout.proto.Modifiers modifiers = 5;

Returns:

The modifiers.

public boolean hasColorFilter()

 Filtering parameters for this image. If not specified, defaults to no
 filtering.
 
.androidx.wear.protolayout.proto.ColorFilter color_filter = 6;

Returns:

Whether the colorFilter field is set.

public LayoutElementProto.ColorFilter getColorFilter()

 Filtering parameters for this image. If not specified, defaults to no
 filtering.
 
.androidx.wear.protolayout.proto.ColorFilter color_filter = 6;

Returns:

The colorFilter.