# AnimationBuilder

public final class AnimationBuilder

Builder class used to set additional options for a scale animation. Create an instance using animateScale, then set your options and call start.

## Functions

start
Link copied to clipboard
public void start()
Starts the animation.
withDuration
Link copied to clipboard
public SubsamplingScaleImageView.AnimationBuilder withDuration(long duration)
Desired duration of the anim in milliseconds.
withEasing
Link copied to clipboard
public SubsamplingScaleImageView.AnimationBuilder withEasing(int easing)
Set the easing style.
withInterruptible
Link copied to clipboard
public SubsamplingScaleImageView.AnimationBuilder withInterruptible(boolean interruptible)
Whether the animation can be interrupted with a touch.
withOnAnimationEventListener
Link copied to clipboard
public SubsamplingScaleImageView.AnimationBuilder withOnAnimationEventListener(SubsamplingScaleImageView.OnAnimationEventListener listener)
Add an animation event listener.