library / com.otaliastudios.zoom / ZoomEngine / SimpleListener

SimpleListener

abstract class SimpleListener : Listener

A simple implementation of Listener that will extract the translation and scale values from the output matrix.

Constructors

<init>

A simple implementation of Listener that will extract the translation and scale values from the output matrix.

SimpleListener()

Functions

onUpdate

Notifies that the inner matrix was updated. The passed matrix can be changed, but is not guaranteed to be stable. For a long lasting value it is recommended to make a copy of it using Matrix.set.

open fun onUpdate(engine: ZoomEngine, matrix: Matrix): Unit