public final class

ResourceBuilders.AndroidSeekableAnimatedImageResourceByResId

extends java.lang.Object

 java.lang.Object

↳androidx.wear.protolayout.ResourceBuilders.AndroidSeekableAnimatedImageResourceByResId

Overview

A seekable animated image resource that maps to an Android drawable by resource ID. The animation progress is bound to the provided dynamic float.

Summary

Methods
public static ResourceBuilders.AndroidSeekableAnimatedImageResourceByResIdfromProto(ResourceProto.AndroidSeekableAnimatedImageResourceByResId proto)

Creates a new wrapper instance from the proto.

public intgetAnimatedImageFormat()

Gets the format for the animated image.

public DynamicBuilders.DynamicFloatgetProgress()

Gets a DynamicBuilders.DynamicFloat, normally transformed from certain states with the data binding pipeline to control the progress of the animation.

public intgetResourceId()

Gets the Android resource ID, e.g.

public ResourceProto.AndroidSeekableAnimatedImageResourceByResIdtoProto()

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 DynamicBuilders.DynamicFloat getProgress()

Gets a DynamicBuilders.DynamicFloat, normally transformed from certain states with the data binding pipeline to control the progress of the animation. Its value is required to fall in the range of [0.0, 1.0]. Any values outside this range would be clamped. When the first value of the DynamicBuilders.DynamicFloat arrives, the animation starts from progress 0 to that value. After that it plays from current progress to the new value on subsequent updates. If not set, the animation will play on load (similar to a non-seekable animated).

Creates a new wrapper instance from the proto.

Returns the internal proto instance.

public java.lang.String toString()