ResourceBuilders.AndroidAnimatedImageResourceByResId


@RequiresSchemaVersion(major = 1, minor = 200)
@ProtoLayoutExperimental
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 functions

Int

Gets the format for the animated image.

@DrawableRes Int

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

TriggerBuilders.Trigger?

Gets the trigger to start the animation.

String

Public functions

getAnimatedImageFormat

Added in 1.0.0
fun getAnimatedImageFormat(): Int

Gets the format for the animated image.

getResourceId

Added in 1.0.0
fun getResourceId(): @DrawableRes Int

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

getStartTrigger

Added in 1.0.0
fun getStartTrigger(): TriggerBuilders.Trigger?

Gets the trigger to start the animation.

toString

fun toString(): String