-
- All Implemented Interfaces:
-
com.otaliastudios.zoom.ZoomEngine.Listener
public abstract class ZoomEngine.SimpleListener implements ZoomEngine.Listener
A simple implementation of Listener that will extract the translation and scale values from the output matrix.
-
-
Constructor Summary
Constructors Constructor Description ZoomEngine.SimpleListener()
-
Method Summary
Modifier and Type Method Description UnitonUpdate(ZoomEngine engine, Matrix matrix)Notifies that the inner matrix was updated. -
-
Method Detail
-
onUpdate
Unit onUpdate(ZoomEngine engine, Matrix matrix)
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.
- Parameters:
engine- the engine hosting the matrixmatrix- a matrix with the given updates
-
-
-
-