@joshfarrant/shortcuts-js
Version:
An iOS 12 Shortcuts creator
24 lines • 674 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const utils_1 = require("../utils");
/**
* @action Get Latest Screenshots
* @section Content Types > Photos & Video > Photos
* @icon Photos
*
* Gets the most recent screenshots from the camera roll.
*
* ```js
* getLatestScreenshots({
* count: 1,
* });
* ```
*/
const getLatestScreenshots = ({ count = 1, }) => ({
WFWorkflowActionIdentifier: 'is.workflow.actions.getlastscreenshot',
WFWorkflowActionParameters: {
WFGetLatestPhotoCount: count,
},
});
exports.default = utils_1.withActionOutput(getLatestScreenshots);
//# sourceMappingURL=getLatestScreenshots.js.map