public final class

ResourceProto.AndroidSeekableAnimatedImageResourceByResId

extends <any>

implements ResourceProto.AndroidSeekableAnimatedImageResourceByResIdOrBuilder

 java.lang.Object

↳<any>

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

Summary

Fields
public static final intANIMATED_IMAGE_FORMAT_FIELD_NUMBER

public static final intPROGRESS_FIELD_NUMBER

public static final intRESOURCE_ID_FIELD_NUMBER

Methods
protected final java.lang.ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)

public ResourceProto.AnimatedImageFormatgetAnimatedImageFormat()

 The format for the animated image.

public intgetAnimatedImageFormatValue()

 The format for the animated image.

public static ResourceProto.AndroidSeekableAnimatedImageResourceByResIdgetDefaultInstance()

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 static ResourceProto.AndroidSeekableAnimatedImageResourceByResId.BuildernewBuilder()

public static ResourceProto.AndroidSeekableAnimatedImageResourceByResId.BuildernewBuilder(ResourceProto.AndroidSeekableAnimatedImageResourceByResId prototype)

public static ResourceProto.AndroidSeekableAnimatedImageResourceByResIdparseDelimitedFrom(java.io.InputStream input)

public static ResourceProto.AndroidSeekableAnimatedImageResourceByResIdparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ResourceProto.AndroidSeekableAnimatedImageResourceByResIdparseFrom(byte[] data[], com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ResourceProto.AndroidSeekableAnimatedImageResourceByResIdparseFrom(java.nio.ByteBuffer data)

public static ResourceProto.AndroidSeekableAnimatedImageResourceByResIdparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ResourceProto.AndroidSeekableAnimatedImageResourceByResIdparseFrom(com.google.protobuf.ByteString data)

public static ResourceProto.AndroidSeekableAnimatedImageResourceByResIdparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ResourceProto.AndroidSeekableAnimatedImageResourceByResIdparseFrom(com.google.protobuf.CodedInputStream input)

public static ResourceProto.AndroidSeekableAnimatedImageResourceByResIdparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ResourceProto.AndroidSeekableAnimatedImageResourceByResIdparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static <any>parser()

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

Fields

public static final int ANIMATED_IMAGE_FORMAT_FIELD_NUMBER

public static final int RESOURCE_ID_FIELD_NUMBER

public static final int PROGRESS_FIELD_NUMBER

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

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

Returns:

The animatedImageFormat.

public int getResourceId()

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

Returns:

The resourceId.

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;

public static ResourceProto.AndroidSeekableAnimatedImageResourceByResId parseFrom(java.nio.ByteBuffer data)

public static ResourceProto.AndroidSeekableAnimatedImageResourceByResId parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ResourceProto.AndroidSeekableAnimatedImageResourceByResId parseFrom(com.google.protobuf.ByteString data)

public static ResourceProto.AndroidSeekableAnimatedImageResourceByResId parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ResourceProto.AndroidSeekableAnimatedImageResourceByResId parseFrom(byte[] data[], com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ResourceProto.AndroidSeekableAnimatedImageResourceByResId parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ResourceProto.AndroidSeekableAnimatedImageResourceByResId parseDelimitedFrom(java.io.InputStream input)

public static ResourceProto.AndroidSeekableAnimatedImageResourceByResId parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ResourceProto.AndroidSeekableAnimatedImageResourceByResId parseFrom(com.google.protobuf.CodedInputStream input)

public static ResourceProto.AndroidSeekableAnimatedImageResourceByResId parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

protected final java.lang.Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)

public static <any> parser()