library / com.otaliastudios.zoom / ZoomEngine / SimpleListener / onUpdate

onUpdate

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

Overrides Listener.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.

Parameters

engine - the engine hosting the matrix

matrix - a matrix with the given updates