Preparing search index...

    Cursor visual state, passed to SpecsInteractionModule.Interactor#setCursorVisualState. A default-constructed instance (Auto mode, no hold, all flags false) clears any state previously set for the interactor.

    Lens Scripting Version 375

    // Reuse one instance across frames; mutate and resubmit while a hold is in flight.
    const cursorState = new SpecsInteractionModule.CursorVisualState();
    cursorState.holdProgress = 0.5; // half-way through an 800ms long-press
    cursorState.holdThresholdMs = 800;
    interactor.setCursorVisualState(cursorState);
    Index

    Constructors

    Properties

    holdProgress: number

    Long-press hold progress that drives the timer arc, in the range [0, 1]. Leave at 0 when no hold is in flight.

    Lens Scripting Version 375

    0
    
    holdThresholdMs: number

    Duration of the long-press hold in milliseconds. Only meaningful when holdProgress is greater than 0.

    Lens Scripting Version 375

    0
    

    Cursor visual treatment. Translate and the Scale modes show manipulation arrows.

    Lens Scripting Version 375

    SpecsInteractionModule.CursorVisualMode.Auto
    
    nearField: boolean

    Whether the interactor is in near-field range.

    Lens Scripting Version 375

    false
    
    poking: boolean

    Whether the interactor is poking.

    Lens Scripting Version 375

    false
    
    secondaryTriggering: boolean

    Whether a secondary trigger is currently engaged.

    Lens Scripting Version 375

    false
    

    Methods

    • Returns the fully-qualified JavaScript type name for this class (for example, "Component.Camera"). This is a static accessor (no instance required) and returns the same value as the instance getTypeName().

      Returns string

      Lens Scripting Version 375