ResourceBuilders.AndroidAnimatedImageResourceByResId


@RequiresSchemaVersion(major = 1, minor = 200)
@ProtoLayoutExperimental
public final class ResourceBuilders.AndroidAnimatedImageResourceByResId


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

Public methods

boolean
int

Gets the format for the animated image.

@DrawableRes int

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

@Nullable TriggerBuilders.Trigger

Gets the trigger to start the animation.

int
@NonNull String

Public methods

equals

public boolean equals(@Nullable Object obj)

getAnimatedImageFormat

Added in 1.0.0
public int getAnimatedImageFormat()

Gets the format for the animated image.

getResourceId

Added in 1.0.0
public @DrawableRes int getResourceId()

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

getStartTrigger

Added in 1.0.0
public @Nullable TriggerBuilders.Trigger getStartTrigger()

Gets the trigger to start the animation.

hashCode

public int hashCode()

toString

public @NonNull String toString()