@joshfarrant/shortcuts-js
Version:
An iOS 12 Shortcuts creator
20 lines (19 loc) • 468 B
TypeScript
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;