UNPKG

@joshfarrant/shortcuts-js

Version:
20 lines (19 loc) 468 B
import WFWorkflowAction from '../interfaces/WF/WFWorkflowAction'; /** * @action Set Flashlight * @section Actions > Scripting > Device * @icon Flashlight * * Turns on or off the flashlight near the device's camera. * * ```js * setTorch({ * setting: 'Off', * }); * ``` */ declare const setTorch: ({ setting, }: { /** The state to set for the torch */ setting?: "On" | "Off" | "Toggle" | undefined; }) => WFWorkflowAction; export default setTorch;