Skip to main content

SpecsInteractionModule.InteractorKind

Enum

The category of an interactor.

  • 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

The category of an interactor. Distinct from an interactor's id, which is its runtime identity: two interactors can share a kind while having different ids.

Index

Enumeration Members

Example

interaction.onInteractorAdded.add(function (interactor) {
if (interactor.kind === SpecsInteractionModule.InteractorKind.RightHand) {
print("right hand connected");
}
});

Enumeration Members

LeftHand

LeftHand: number

SPECS

Left hand.

Since

Lens Scripting Version 375


RightHand

RightHand: number

SPECS

Right hand.

Since

Lens Scripting Version 375


Unknown

Unknown: number

SPECS

Default before a kind is assigned, or an interactor whose kind this version does not recognize.

Since

Lens Scripting Version 375