@joshfarrant/shortcuts-js
Version:
An iOS 12 Shortcuts creator
23 lines • 502 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @action Set Wi-Fi
* @section Actions > Scripting > Device
* @icon Wi-Fi
*
* Sets the device’s Wi-Fi to on or off.
*
* ```js
* setWiFi({
* value: true,
* });
* ```
*/
const setWiFi = ({ value = true, }) => ({
WFWorkflowActionIdentifier: 'is.workflow.actions.wifi.set',
WFWorkflowActionParameters: {
OnValue: value,
},
});
exports.default = setWiFi;
//# sourceMappingURL=setWiFi.js.map