Builder

class Builder<T : Tracker?>

A builder class for creating instances of TrackerAnimation.

Since

2.2.0

Parameters

<T>

the type of tracker

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
@NotNull
open fun build(): @NotNull TrackerAnimation<T>
Builds the TrackerAnimation instance.
Link copied to clipboard
@NotNull
open fun check(@NotNull applyCondition: @NotNull Predicate<in T>): @NotNull TrackerAnimation.Builder<T>
Sets the condition that must be met for the animation to play.
Link copied to clipboard
@NotNull
open fun modifier(@NotNull modifierBuilder: @NotNull (in T) -> AnimationModifier): @NotNull TrackerAnimation.Builder<T>
Sets the modifier builder for the animation.
Link copied to clipboard
@NotNull
open fun onFallback(@NotNull fallbackTask: @NotNull Consumer<in T>): @NotNull TrackerAnimation.Builder<T>
Sets the task to run when the animation fails to start.
Link copied to clipboard
@NotNull
open fun onRemove(@NotNull removeTask: @NotNull Consumer<in T>): @NotNull TrackerAnimation.Builder<T>
Sets the task to run when the animation is removed.
Link copied to clipboard
@NotNull
open fun onSuccess(@NotNull successTask: @NotNull Consumer<in T>): @NotNull TrackerAnimation.Builder<T>
Sets the task to run when the animation starts successfully.
Link copied to clipboard
@NotNull
open fun priority(priority: Int): @NotNull TrackerAnimation.Builder<T>
Sets the priority of the animation.
Link copied to clipboard
@NotNull
open fun <R : T?> type(@NotNull newTargetClass: @NotNull Class<R>): @NotNull TrackerAnimation.Builder<R>
Changes the target tracker type for this builder.