library / com.otaliastudios.zoom / ZoomSurfaceView / Callback

Callback

interface Callback

A Callback to be notified of the surface lifecycle. All methods are invoked on the ui thread for convenience.

Functions

onZoomSurfaceCreated

The underlying surface was just created. At this point you can call surface to obtain a consumable surface.

abstract fun onZoomSurfaceCreated(view: ZoomSurfaceView): Unit

onZoomSurfaceDestroyed

The underlying surface has just been destroyed. At this point the surface obtained with surface is about to be released.

abstract fun onZoomSurfaceDestroyed(view: ZoomSurfaceView): Unit