public final class

ResourceBuilders.AndroidImageResourceByResId

extends java.lang.Object

 java.lang.Object

↳androidx.wear.protolayout.ResourceBuilders.AndroidImageResourceByResId

Overview

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

Summary

Methods
public static ResourceBuilders.AndroidImageResourceByResIdfromProto(ResourceProto.AndroidImageResourceByResId proto)

Creates a new wrapper instance from the proto.

public intgetResourceId()

Gets the Android resource ID of this image.

public ResourceProto.AndroidImageResourceByResIdtoProto()

Returns the internal proto instance.

public java.lang.StringtoString()

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

Methods

public int getResourceId()

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

Creates a new wrapper instance from the proto.

Returns the internal proto instance.

public java.lang.String toString()