ResourceBuilders.AndroidAnimatedImageResourceByResId.Builder


public final class ResourceBuilders.AndroidAnimatedImageResourceByResId.Builder


Builder for AndroidAnimatedImageResourceByResId

Summary

Public constructors

Creates an instance of Builder.

Public methods

@NonNull ResourceBuilders.AndroidAnimatedImageResourceByResId

Builds an instance from accumulated values.

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

Sets the format for the animated image.

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

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

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

Sets the trigger to start the animation.

Public constructors

Builder

Added in 1.0.0
public Builder()

Creates an instance of Builder.

Public methods

build

Added in 1.0.0
public @NonNull ResourceBuilders.AndroidAnimatedImageResourceByResId build()

Builds an instance from accumulated values.

setAnimatedImageFormat

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
public @NonNull ResourceBuilders.AndroidAnimatedImageResourceByResId.Builder setAnimatedImageFormat(int animatedImageFormat)

Sets the format for the animated image.

setResourceId

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
public @NonNull ResourceBuilders.AndroidAnimatedImageResourceByResId.Builder setResourceId(@DrawableRes int resourceId)

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

setStartTrigger

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

Sets the trigger to start the animation.