Package io.rong.imkit.picture.widget.longimage

## Class SubsamplingScaleImageView.AnimationBuilder

- All Implemented Interfaces:

      public final class SubsamplingScaleImageView.AnimationBuilder

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

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---

  - ### Enum Constant Summary

    Enum Constants
    Enum Constant | Description
    --- | ---

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `SubsamplingScaleImageView.AnimationBuilder` | `withDuration(long duration)` | Desired duration of the anim in milliseconds.
    `SubsamplingScaleImageView.AnimationBuilder` | `withInterruptible(boolean interruptible)` | Whether the animation can be interrupted with a touch.
    `SubsamplingScaleImageView.AnimationBuilder` | `withEasing(int easing)` | Set the easing style.
    `SubsamplingScaleImageView.AnimationBuilder` | `withOnAnimationEventListener(SubsamplingScaleImageView.OnAnimationEventListener listener)` | Add an animation event listener.
    `void` | `start()` | Starts the animation.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

  - ### Method Detail

    - #### withDuration

           SubsamplingScaleImageView.AnimationBuilder withDuration(long duration)

      Desired duration of the anim in milliseconds. Default is 500.

      Parameters:
        `duration` - duration in milliseconds.
      Returns:

        this builder for method chaining.

    - #### withInterruptible

           SubsamplingScaleImageView.AnimationBuilder withInterruptible(boolean interruptible)

      Whether the animation can be interrupted with a touch. Default is true.

      Parameters:
        `interruptible` - interruptible flag.
      Returns:

        this builder for method chaining.

    - #### withEasing

           SubsamplingScaleImageView.AnimationBuilder withEasing(int easing)

      Set the easing style. See static fields. EASE_IN_OUT_QUAD is recommended, and the default.

      Parameters:
        `easing` - easing style.
      Returns:

        this builder for method chaining.

    - #### withOnAnimationEventListener

           SubsamplingScaleImageView.AnimationBuilder withOnAnimationEventListener(SubsamplingScaleImageView.OnAnimationEventListener listener)

      Add an animation event listener.

      Parameters:
        `listener` - The listener.
      Returns:

        this builder for method chaining.

    - #### start

           void start()

      Starts the animation.