Interface that all methods of detecting pinch should adhere to in order to be usable in PinchDetector

interface PinchDetectionStrategy {
    onPinchDetected: PublicApi<PinchEventType>;
    onPinchProximity: PublicApi<number>;
}

Implemented by

Properties

onPinchDetected: PublicApi<PinchEventType>

Event invokes when a pinch is down or up or cancelled

onPinchProximity: PublicApi<number>

Event invoked when a pinch proximity occurs. Normalized value from 0-1, where: 0 is the distance from a finger tip to the thumb tip in resting/neutral hand pose. 1 is when a finger tip to thumb tip are touching/pinching