ResourceBuilders.AndroidImageResourceByResId

public static final class ResourceBuilders.AndroidImageResourceByResId
extends Object

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


An image resource which maps to an Android drawable by resource ID.

Summary

Nested classes

class ResourceBuilders.AndroidImageResourceByResId.Builder

Builder for ResourceBuilders.AndroidImageResourceByResId  

Public methods

static ResourceBuilders.AndroidImageResourceByResId.Builder builder()

Returns a new ResourceBuilders.AndroidImageResourceByResId.Builder.

int getResourceId()

Gets the Android resource ID of this image.

Inherited methods

Public methods

getResourceId

public int getResourceId ()

Gets the Android resource ID of this image. This must refer to a drawable under R.drawable. Intended for testing purposes only.

Returns
int