UserActivityModule.Posture
EnumAn enumeration describing the user's current posture.
- 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
Since Lens Scripting v380
An enumeration describing the user's current posture.
Index
Example
const activityModule: UserActivityModule = require('LensStudio:UserActivityModule');
if (activityModule.posture === UserActivityModule.Posture.Sitting) {
print("The user is sitting");
}
Enumeration Members
Lounging
Lounging:
number
SPECS
The user is lounging.
Since
Lens Scripting Version 380
Sitting
Sitting:
number
SPECS
The user is sitting.
Since
Lens Scripting Version 380
Standing
Standing:
number
SPECS
The user is standing.
Since
Lens Scripting Version 380
Unknown
Unknown:
number
SPECS
An unknown value, indicating no posture is detected with reasonable accuracy.
Since
Lens Scripting Version 380