UNPKG

@joshfarrant/shortcuts-js

Version:
23 lines 554 B
"use strict"; 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