TapToFocusGestureController

interface TapToFocusGestureController extends GestureController

A TapToFocusGestureController is a GestureController that can trigger a CameraController's focusTo(...) action via a native tap to focus gesture.

Properties

controller

controller: CameraController | undefined

Gets or sets the CameraController this GestureController should control.

Inherited from

GestureController.controller

Methods

addOnFocusCompletedListener(...)

addOnFocusCompletedListener(onFocusCompleted: (point: MeteringPoint) => void): ListenerSubscription

Adds a listener that is called when the focus operation triggered by a native tap completes.

This is not called if the focus operation fails. Call remove() on the returned subscription to stop receiving updates.


addOnTapListener(...)

addOnTapListener(onTap: (point: MeteringPoint) => void): ListenerSubscription

Adds a listener that is called when a native tap gesture creates a MeteringPoint, immediately before focusing begins.

Call remove() on the returned subscription to stop receiving updates.

On this page