Skip to main content

SnapOS.onThrottleStateChanged

Variable

Fires whenever the SnapOS Dynamic Power Manager throttle state changes, delivering the current ThrottleState.

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

Platform details

  • Snapchat — Not supported — SPECS only.

  • SPECS — Fully supported.

  • Camera Kit Web — Not supported — SPECS only.

  • Camera Kit Mobile — Not supported — SPECS only.

Since Lens Scripting v387

const onThrottleStateChanged: event1<ThrottleState, void>

Fires whenever the SnapOS Dynamic Power Manager throttle state changes, delivering the current ThrottleState. The current state is delivered as the initial event on subscribe when the device is already throttling.