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

## Interface SubsamplingScaleImageView.OnStateChangedListener

- All Implemented Interfaces:

      public interface SubsamplingScaleImageView.OnStateChangedListener

  An event listener, allowing activities to be notified of pan and zoom events. Initialisation and calls made by your code do not trigger events; touch events and animations do. Methods in this listener will be called on the UI thread and may be called very frequently - your implementation should return quickly.

- - ### 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
    --- | --- | ---
    `abstract void` | `onScaleChanged(float newScale, int origin)` | The scale has changed.
    `abstract 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

  - ### Method Detail

    - #### onScaleChanged

           abstract 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

           abstract 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.