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

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.

@NonNull String

Public methods

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.

toString

public @NonNull String toString()