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

abstract fun onZoomSurfaceCreated(view: ZoomSurfaceView): Unit

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

onZoomSurfaceDestroyed

abstract fun onZoomSurfaceDestroyed(view: ZoomSurfaceView): Unit

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