ResourceBuilders.AndroidImageResourceByResId.Builder

public static final class ResourceBuilders.AndroidImageResourceByResId.Builder
extends Object

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


Builder for ResourceBuilders.AndroidImageResourceByResId

Summary

Public methods

ResourceBuilders.AndroidImageResourceByResId build()

Builds an instance from accumulated values.

ResourceBuilders.AndroidImageResourceByResId.Builder setResourceId(int resourceId)

Sets the Android resource ID of this image.

Inherited methods

Public methods

build

public ResourceBuilders.AndroidImageResourceByResId build ()

Builds an instance from accumulated values.

Returns
ResourceBuilders.AndroidImageResourceByResId

setResourceId

public ResourceBuilders.AndroidImageResourceByResId.Builder setResourceId (int resourceId)

Sets the Android resource ID of this image. This must refer to a drawable under R.drawable.

Parameters
resourceId int

Returns
ResourceBuilders.AndroidImageResourceByResId.Builder