UNPKG

@joshfarrant/shortcuts-js

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