ResourceBuilders.AndroidAnimatedImageResourceByResId.Builder


class ResourceBuilders.AndroidAnimatedImageResourceByResId.Builder


Builder for AndroidAnimatedImageResourceByResId

Summary

Public constructors

Creates an instance of Builder.

Public functions

ResourceBuilders.AndroidAnimatedImageResourceByResId

Builds an instance from accumulated values.

ResourceBuilders.AndroidAnimatedImageResourceByResId.Builder
@RequiresSchemaVersion(major = 1, minor = 200)
setAnimatedImageFormat(animatedImageFormat: Int)

Sets the format for the animated image.

ResourceBuilders.AndroidAnimatedImageResourceByResId.Builder
@RequiresSchemaVersion(major = 1, minor = 200)
setResourceId(resourceId: @DrawableRes Int)

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

ResourceBuilders.AndroidAnimatedImageResourceByResId.Builder
@RequiresSchemaVersion(major = 1, minor = 200)
setStartTrigger(startTrigger: TriggerBuilders.Trigger)

Sets the trigger to start the animation.

Public constructors

Builder

Added in 1.0.0
Builder()

Creates an instance of Builder.

Public functions

build

Added in 1.0.0
fun build(): ResourceBuilders.AndroidAnimatedImageResourceByResId

Builds an instance from accumulated values.

setAnimatedImageFormat

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun setAnimatedImageFormat(animatedImageFormat: Int): ResourceBuilders.AndroidAnimatedImageResourceByResId.Builder

Sets the format for the animated image.

setResourceId

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun setResourceId(resourceId: @DrawableRes Int): ResourceBuilders.AndroidAnimatedImageResourceByResId.Builder

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

setStartTrigger

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun setStartTrigger(startTrigger: TriggerBuilders.Trigger): ResourceBuilders.AndroidAnimatedImageResourceByResId.Builder

Sets the trigger to start the animation.