rememberGestureControllers

fun rememberGestureControllers(controller: CameraController?, enableNativeTapToFocusGesture: Boolean, enableNativeZoomGesture: Boolean): List<GestureController>

Create the native GestureControllers to attach to a NativePreviewView, and keep them bound to the given controller. Camera does it for you with enableNativeTapToFocusGesture and enableNativeZoomGesture.

Parameters

controller

The CameraController the gestures control, or null to disable them.

enableNativeTapToFocusGesture

Whether to install the native tap-to-focus gesture.

enableNativeZoomGesture

Whether to install the native pinch-to-zoom gesture.