Lens Scripting API
    Preparing search index...

    Wraps PinchDetectionStrategy inside PinchDetectorStateMachine for pinch events

    Index

    Constructors

    Properties

    useFilteredPinch: boolean = false

    Determines if the pinch detector should listen to filtered or unfiltered pinch events.

    Accessors

    • get onPinchCancel(): PublicApi<void>

      Event called when the user's pinch is canceled by the system.

      Returns PublicApi<void>

    • get onPinchDown(): PublicApi<void>

      Event called when the user has successfully pinched down.

      Returns PublicApi<void>

    • get onPinchUp(): PublicApi<void>

      Event called when the user has released pinching after they have successfully pinched down.

      Returns PublicApi<void>

    Methods

    • Returns a 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

      Returns number

    • Determines if the user is pinching

      Returns boolean