public final class

LayoutElementProto.Image.Builder

extends <any>

implements LayoutElementProto.ImageOrBuilder

 java.lang.Object

↳<any>

↳androidx.wear.protolayout.proto.LayoutElementProto.Image.Builder

Overview

 An image.

 Images used in this element must exist in the resource bundle that
 corresponds to this layout. Images must have their dimension specified, and
 will be rendered at this width and height, regardless of their native
 dimension.
 
Protobuf type androidx.wear.protolayout.proto.Image

Summary

Methods
public LayoutElementProto.Image.BuilderclearColorFilter()

 Filtering parameters for this image.

public LayoutElementProto.Image.BuilderclearContentScaleMode()

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

public LayoutElementProto.Image.BuilderclearHeight()

 The height of this image.

public LayoutElementProto.Image.BuilderclearModifiers()

 Modifiers for this element.

public LayoutElementProto.Image.BuilderclearResourceId()

 The resource_id of the image to render.

public LayoutElementProto.Image.BuilderclearWidth()

 The width of this image.

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.

public LayoutElementProto.Image.BuildermergeColorFilter(LayoutElementProto.ColorFilter value)

 Filtering parameters for this image.

public LayoutElementProto.Image.BuildermergeContentScaleMode(LayoutElementProto.ContentScaleModeProp value)

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

public LayoutElementProto.Image.BuildermergeHeight(DimensionProto.ImageDimension value)

 The height of this image.

public LayoutElementProto.Image.BuildermergeModifiers(ModifiersProto.Modifiers value)

 Modifiers for this element.

public LayoutElementProto.Image.BuildermergeResourceId(TypesProto.StringProp value)

 The resource_id of the image to render.

public LayoutElementProto.Image.BuildermergeWidth(DimensionProto.ImageDimension value)

 The width of this image.

public LayoutElementProto.Image.BuildersetColorFilter(LayoutElementProto.ColorFilter.Builder builderForValue)

 Filtering parameters for this image.

public LayoutElementProto.Image.BuildersetColorFilter(LayoutElementProto.ColorFilter value)

 Filtering parameters for this image.

public LayoutElementProto.Image.BuildersetContentScaleMode(LayoutElementProto.ContentScaleModeProp.Builder builderForValue)

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

public LayoutElementProto.Image.BuildersetContentScaleMode(LayoutElementProto.ContentScaleModeProp value)

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

public LayoutElementProto.Image.BuildersetHeight(DimensionProto.ImageDimension.Builder builderForValue)

 The height of this image.

public LayoutElementProto.Image.BuildersetHeight(DimensionProto.ImageDimension value)

 The height of this image.

public LayoutElementProto.Image.BuildersetModifiers(ModifiersProto.Modifiers.Builder builderForValue)

 Modifiers for this element.

public LayoutElementProto.Image.BuildersetModifiers(ModifiersProto.Modifiers value)

 Modifiers for this element.

public LayoutElementProto.Image.BuildersetResourceId(TypesProto.StringProp.Builder builderForValue)

 The resource_id of the image to render.

public LayoutElementProto.Image.BuildersetResourceId(TypesProto.StringProp value)

 The resource_id of the image to render.

public LayoutElementProto.Image.BuildersetWidth(DimensionProto.ImageDimension.Builder builderForValue)

 The width of this image.

public LayoutElementProto.Image.BuildersetWidth(DimensionProto.ImageDimension value)

 The width of this image.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

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;

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;

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

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

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

public LayoutElementProto.Image.Builder clearResourceId()

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

public boolean hasWidth()

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

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

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

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

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

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

public boolean hasHeight()

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

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

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

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

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

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

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;

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;

 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;

 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;

 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;

public LayoutElementProto.Image.Builder clearContentScaleMode()

 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;

public boolean hasModifiers()

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

public ModifiersProto.Modifiers getModifiers()

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

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

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

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

public LayoutElementProto.Image.Builder clearModifiers()

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

public boolean hasColorFilter()

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

public LayoutElementProto.ColorFilter getColorFilter()

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

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

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

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

public LayoutElementProto.Image.Builder clearColorFilter()

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