public final class

ResourceProto.AndroidAnimatedImageResourceByResId.Builder

extends <any>

implements ResourceProto.AndroidAnimatedImageResourceByResIdOrBuilder

 java.lang.Object

↳<any>

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

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

Summary

Methods
public ResourceProto.AndroidAnimatedImageResourceByResId.BuilderclearAnimatedImageFormat()

 The format for the animated image.

public ResourceProto.AndroidAnimatedImageResourceByResId.BuilderclearResourceId()

 The Android resource ID, e.g.

public ResourceProto.AndroidAnimatedImageResourceByResId.BuilderclearStartTrigger()

 The trigger to start the animation.

public ResourceProto.AnimatedImageFormatgetAnimatedImageFormat()

 The format for the animated image.

public intgetAnimatedImageFormatValue()

 The format for the animated image.

public intgetResourceId()

 The Android resource ID, e.g.

public TriggerProto.TriggergetStartTrigger()

 The trigger to start the animation.

public booleanhasStartTrigger()

 The trigger to start the animation.

public ResourceProto.AndroidAnimatedImageResourceByResId.BuildermergeStartTrigger(TriggerProto.Trigger value)

 The trigger to start the animation.

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

 The format for the animated image.

public ResourceProto.AndroidAnimatedImageResourceByResId.BuildersetAnimatedImageFormatValue(int value)

 The format for the animated image.

public ResourceProto.AndroidAnimatedImageResourceByResId.BuildersetResourceId(int value)

 The Android resource ID, e.g.

public ResourceProto.AndroidAnimatedImageResourceByResId.BuildersetStartTrigger(TriggerProto.Trigger.Builder builderForValue)

 The trigger to start the animation.

public ResourceProto.AndroidAnimatedImageResourceByResId.BuildersetStartTrigger(TriggerProto.Trigger value)

 The trigger to start the animation.

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.AndroidAnimatedImageResourceByResId.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 hasStartTrigger()

 The trigger to start the animation.
 
.androidx.wear.protolayout.proto.Trigger start_trigger = 3;

public TriggerProto.Trigger getStartTrigger()

 The trigger to start the animation.
 
.androidx.wear.protolayout.proto.Trigger start_trigger = 3;

 The trigger to start the animation.
 
.androidx.wear.protolayout.proto.Trigger start_trigger = 3;

 The trigger to start the animation.
 
.androidx.wear.protolayout.proto.Trigger start_trigger = 3;

 The trigger to start the animation.
 
.androidx.wear.protolayout.proto.Trigger start_trigger = 3;

 The trigger to start the animation.
 
.androidx.wear.protolayout.proto.Trigger start_trigger = 3;