ResourceBuilders.ImageResource.Builder

public static final class ResourceBuilders.ImageResource.Builder
extends Object

java.lang.Object
   ↳ androidx.wear.tiles.builders.ResourceBuilders.ImageResource.Builder


Builder for ResourceBuilders.ImageResource

Summary

Public methods

ResourceBuilders.ImageResource build()

Builds an instance from accumulated values.

ResourceBuilders.ImageResource.Builder setAndroidResourceByResid(ResourceBuilders.AndroidImageResourceByResId.Builder androidResourceByResidBuilder)

Sets an image resource that maps to an Android drawable by resource ID.

ResourceBuilders.ImageResource.Builder setAndroidResourceByResid(ResourceBuilders.AndroidImageResourceByResId androidResourceByResid)

Sets an image resource that maps to an Android drawable by resource ID.

ResourceBuilders.ImageResource.Builder setInlineResource(ResourceBuilders.InlineImageResource.Builder inlineResourceBuilder)

Sets an image resource that contains the image data inline.

ResourceBuilders.ImageResource.Builder setInlineResource(ResourceBuilders.InlineImageResource inlineResource)

Sets an image resource that contains the image data inline.

Inherited methods

Public methods

build

public ResourceBuilders.ImageResource build ()

Builds an instance from accumulated values.

Returns
ResourceBuilders.ImageResource

setAndroidResourceByResid

public ResourceBuilders.ImageResource.Builder setAndroidResourceByResid (ResourceBuilders.AndroidImageResourceByResId.Builder androidResourceByResidBuilder)

Sets an image resource that maps to an Android drawable by resource ID.

Parameters
androidResourceByResidBuilder ResourceBuilders.AndroidImageResourceByResId.Builder

Returns
ResourceBuilders.ImageResource.Builder

setAndroidResourceByResid

public ResourceBuilders.ImageResource.Builder setAndroidResourceByResid (ResourceBuilders.AndroidImageResourceByResId androidResourceByResid)

Sets an image resource that maps to an Android drawable by resource ID.

Parameters
androidResourceByResid ResourceBuilders.AndroidImageResourceByResId

Returns
ResourceBuilders.ImageResource.Builder

setInlineResource

public ResourceBuilders.ImageResource.Builder setInlineResource (ResourceBuilders.InlineImageResource.Builder inlineResourceBuilder)

Sets an image resource that contains the image data inline.

Parameters
inlineResourceBuilder ResourceBuilders.InlineImageResource.Builder

Returns
ResourceBuilders.ImageResource.Builder

setInlineResource

public ResourceBuilders.ImageResource.Builder setInlineResource (ResourceBuilders.InlineImageResource inlineResource)

Sets an image resource that contains the image data inline.

Parameters
inlineResource ResourceBuilders.InlineImageResource

Returns
ResourceBuilders.ImageResource.Builder