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

## Class SubsamplingScaleImageView.DefaultOnStateChangedListener

- All Implemented Interfaces:
    `io.rong.imkit.picture.widget.longimage.SubsamplingScaleImageView.OnStateChangedListener`

      public class SubsamplingScaleImageView.DefaultOnStateChangedListener
       implements SubsamplingScaleImageView.OnStateChangedListener

  Default implementation of OnStateChangedListener. This does nothing in any method.

- - ### Nested Class Summary

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

  - ### Field Summary

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

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `SubsamplingScaleImageView.DefaultOnStateChangedListener()` |

  - ### Enum Constant Summary

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

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `onScaleChanged(float newScale, int origin)` | The scale has changed.
    `void` | `onCenterChanged(PointF newCenter, int origin)` | The source center has been changed.

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

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

- - ### Constructor Detail

    - #### SubsamplingScaleImageView.DefaultOnStateChangedListener

          SubsamplingScaleImageView.DefaultOnStateChangedListener()

  - ### Method Detail

    - #### onScaleChanged

           void onScaleChanged(float newScale, int origin)

      The scale has changed. Use with getMaxScale and getMinScale to determine whether the image is fully zoomed in or out.

      Parameters:
        `newScale` - The new scale.
        `origin` - Where the event originated from - one of ORIGIN_ANIM, ORIGIN_TOUCH.

    - #### onCenterChanged

           void onCenterChanged(PointF newCenter, int origin)

      The source center has been changed. This can be a result of panning or zooming.

      Parameters:
        `newCenter` - The new source center point.
        `origin` - Where the event originated from - one of ORIGIN_ANIM, ORIGIN_TOUCH.