@joshfarrant/shortcuts-js
Version:
An iOS 12 Shortcuts creator
20 lines • 575 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const utils_1 = require("../utils");
/**
* @action Get Battery Level
* @section Actions > Scripting > Device
* @icon Battery
*
* Outputs the percentage of battery remaining as a number from 0 to 100.
*
* ```js
* getBatteryLevel();
* ```
*/
const getBatteryLevel = () => ({
WFWorkflowActionIdentifier: 'is.workflow.actions.getbatterylevel',
WFWorkflowActionParameters: {},
});
exports.default = utils_1.withActionOutput(getBatteryLevel);
//# sourceMappingURL=getBatteryLevel.js.map