Skip to main content

SpecsInteractionModule.CursorVisualMode

Enum

Cursor visual treatment.

  • Snapchat: not supported
  • SPECS: fully supported
  • Camera Kit Web: not supported
  • Camera Kit Mobile: not supported
  • SnapchatNot supported — Available on SPECS only
  • SPECSFully supported
  • Camera Kit WebNot supported — Available on SPECS only
  • Camera Kit MobileNot supported — Available on SPECS only

Platform details

  • Snapchat — Not supported — Available on SPECS only.

  • SPECS — Fully supported.

  • Camera Kit Web — Not supported — Available on SPECS only.

  • Camera Kit Mobile — Not supported — Available on SPECS only.

Since Lens Scripting v375

Cursor visual treatment. Names the manipulation in progress so the cursor can show matching translate, scale, or rotation artwork.

Index

Example

const cursorState = new SpecsInteractionModule.CursorVisualState();
cursorState.mode = SpecsInteractionModule.CursorVisualMode.Translate;
interactor.setCursorVisualState(cursorState);

Enumeration Members

Auto

Auto: number

SPECS

Default procedural ring cursor.

Since

Lens Scripting Version 375


RotateClockwise

RotateClockwise: number

SPECS

Paired curved clockwise rotation arrows.

Since

Lens Scripting Version 387


RotateCounterClockwise

RotateCounterClockwise: number

SPECS

Paired curved counterclockwise rotation arrows.

Since

Lens Scripting Version 387


ScaleBottomLeft

ScaleBottomLeft: number

SPECS

Diagonal scale arrows for the bottom-left corner.

Since

Lens Scripting Version 375


ScaleBottomRight

ScaleBottomRight: number

SPECS

Diagonal scale arrows for the bottom-right corner.

Since

Lens Scripting Version 375


ScaleTopLeft

ScaleTopLeft: number

SPECS

Diagonal scale arrows for the top-left corner.

Since

Lens Scripting Version 375


ScaleTopRight

ScaleTopRight: number

SPECS

Diagonal scale arrows for the top-right corner.

Since

Lens Scripting Version 375


Translate

Translate: number

SPECS

Four-way translate arrows.

Since

Lens Scripting Version 375


TranslateHorizontal

TranslateHorizontal: number

SPECS

Horizontal translate arrows.

Since

Lens Scripting Version 387


TranslateVertical

TranslateVertical: number

SPECS

Vertical translate arrows.

Since

Lens Scripting Version 387