public final class

ResourceProto.AndroidSeekableAnimatedImageResourceByResId.Builder

extends <any>

implements ResourceProto.AndroidSeekableAnimatedImageResourceByResIdOrBuilder

 java.lang.Object

↳<any>

↳androidx.wear.protolayout.proto.ResourceProto.AndroidSeekableAnimatedImageResourceByResId.Builder

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.
 
Protobuf type androidx.wear.protolayout.proto.AndroidSeekableAnimatedImageResourceByResId

Summary

Methods
public ResourceProto.AndroidSeekableAnimatedImageResourceByResId.BuilderclearAnimatedImageFormat()

 The format for the animated image.

public ResourceProto.AndroidSeekableAnimatedImageResourceByResId.BuilderclearProgress()

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

public ResourceProto.AndroidSeekableAnimatedImageResourceByResId.BuilderclearResourceId()

 The Android resource ID, e.g.

public ResourceProto.AnimatedImageFormatgetAnimatedImageFormat()

 The format for the animated image.

public intgetAnimatedImageFormatValue()

 The format for the animated image.

public DynamicProto.DynamicFloatgetProgress()

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

public intgetResourceId()

 The Android resource ID, e.g.

public booleanhasProgress()

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

public ResourceProto.AndroidSeekableAnimatedImageResourceByResId.BuildermergeProgress(DynamicProto.DynamicFloat value)

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

public ResourceProto.AndroidSeekableAnimatedImageResourceByResId.BuildersetAnimatedImageFormat(ResourceProto.AnimatedImageFormat value)

 The format for the animated image.

public ResourceProto.AndroidSeekableAnimatedImageResourceByResId.BuildersetAnimatedImageFormatValue(int value)

 The format for the animated image.

public ResourceProto.AndroidSeekableAnimatedImageResourceByResId.BuildersetProgress(DynamicProto.DynamicFloat.Builder builderForValue)

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

public ResourceProto.AndroidSeekableAnimatedImageResourceByResId.BuildersetProgress(DynamicProto.DynamicFloat value)

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

public ResourceProto.AndroidSeekableAnimatedImageResourceByResId.BuildersetResourceId(int value)

 The Android resource ID, e.g.

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

Methods

public int getAnimatedImageFormatValue()

 The format for the animated image.
 
.androidx.wear.protolayout.proto.AnimatedImageFormat animated_image_format = 1;

Returns:

The enum numeric value on the wire for animatedImageFormat.

public ResourceProto.AndroidSeekableAnimatedImageResourceByResId.Builder setAnimatedImageFormatValue(int value)

 The format for the animated image.
 
.androidx.wear.protolayout.proto.AnimatedImageFormat animated_image_format = 1;

Parameters:

value: The animatedImageFormat to set.

Returns:

This builder for chaining.

public ResourceProto.AnimatedImageFormat getAnimatedImageFormat()

 The format for the animated image.
 
.androidx.wear.protolayout.proto.AnimatedImageFormat animated_image_format = 1;

Returns:

The animatedImageFormat.

 The format for the animated image.
 
.androidx.wear.protolayout.proto.AnimatedImageFormat animated_image_format = 1;

Parameters:

value: The enum numeric value on the wire for animatedImageFormat to set.

Returns:

This builder for chaining.

 The format for the animated image.
 
.androidx.wear.protolayout.proto.AnimatedImageFormat animated_image_format = 1;

Returns:

This builder for chaining.

public int getResourceId()

 The Android resource ID, e.g. R.drawable.foo
 
int32 resource_id = 2;

Returns:

The resourceId.

 The Android resource ID, e.g. R.drawable.foo
 
int32 resource_id = 2;

Parameters:

value: The resourceId to set.

Returns:

This builder for chaining.

 The Android resource ID, e.g. R.drawable.foo
 
int32 resource_id = 2;

Returns:

This builder for chaining.

public boolean hasProgress()

 A 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 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).
 
.androidx.wear.protolayout.expression.proto.DynamicFloat progress = 3;

public DynamicProto.DynamicFloat getProgress()

 A 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 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).
 
.androidx.wear.protolayout.expression.proto.DynamicFloat progress = 3;

 A 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 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).
 
.androidx.wear.protolayout.expression.proto.DynamicFloat progress = 3;

 A 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 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).
 
.androidx.wear.protolayout.expression.proto.DynamicFloat progress = 3;

 A 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 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).
 
.androidx.wear.protolayout.expression.proto.DynamicFloat progress = 3;

 A 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 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).
 
.androidx.wear.protolayout.expression.proto.DynamicFloat progress = 3;