@joshfarrant/shortcuts-js
Version:
An iOS 12 Shortcuts creator
23 lines • 554 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @action Set Flashlight
* @section Actions > Scripting > Device
* @icon Flashlight
*
* Turns on or off the flashlight near the device's camera.
*
* ```js
* setTorch({
* setting: 'Off',
* });
* ```
*/
const setTorch = ({ setting = 'On', }) => ({
WFWorkflowActionIdentifier: 'is.workflow.actions.flashlight',
WFWorkflowActionParameters: {
WFFlashlightSetting: setting,
},
});
exports.default = setTorch;
//# sourceMappingURL=setTorch.js.map