Skip to main content

UserActivityModule.ModeOfAction

Enum

An enumeration describing which activity is currently performed by the user.

  • 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 v380

An enumeration describing which activity is currently performed by the user.

Index

Example

const activityModule: UserActivityModule = require('LensStudio:UserActivityModule');
if (activityModule.modeOfAction === UserActivityModule.ModeOfAction.Walking) {
print("The user is walking");
}

Enumeration Members

Cycling

Cycling: number

SPECS

The user is cycling (not implemented yet).

Since

Lens Scripting Version 380


Running

Running: number

SPECS

The user is running.

Since

Lens Scripting Version 380


Stationary

Stationary: number

SPECS

The user is stationary.

Since

Lens Scripting Version 380


Unknown

Unknown: number

SPECS

An unknown value, indicating no activity is detected with reasonable accuracy.

Since

Lens Scripting Version 380


Walking

Walking: number

SPECS

The user is walking.

Since

Lens Scripting Version 380