public final class

ResourceBuilders.AndroidAnimatedImageResourceByResId

extends java.lang.Object

 java.lang.Object

↳androidx.wear.protolayout.ResourceBuilders.AndroidAnimatedImageResourceByResId

Overview

A non-seekable animated image resource that maps to an Android drawable by resource ID. The animation is started with given trigger, fire and forget.

Summary

Methods
public static ResourceBuilders.AndroidAnimatedImageResourceByResIdfromProto(ResourceProto.AndroidAnimatedImageResourceByResId proto)

Creates a new wrapper instance from the proto.

public intgetAnimatedImageFormat()

Gets the format for the animated image.

public intgetResourceId()

Gets the Android resource ID, e.g.

public TriggerBuilders.TriggergetStartTrigger()

Gets the trigger to start the animation.

public ResourceProto.AndroidAnimatedImageResourceByResIdtoProto()

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 getAnimatedImageFormat()

Gets the format for the animated image.

public int getResourceId()

Gets the Android resource ID, e.g. R.drawable.foo.

public TriggerBuilders.Trigger getStartTrigger()

Gets the trigger to start the animation.

Creates a new wrapper instance from the proto.

Returns the internal proto instance.

public java.lang.String toString()