setZoom

open fun setZoom(event: MotionEvent)

Set zoomIn or zoomOut to camera.

Parameters

event

motion event. Expected to get event.getPointerCount() >1


open fun setZoom(event: MotionEvent, delta: Int)


open fun setZoom(level: Int)

Set zoomIn or zoomOut to camera. Use this method if you use a zoom slider.

Parameters

level

Expected to be >= 1 and <= max zoom level

See also