setZoom

open fun setZoom(level: Float)

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


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: Float)