@joshfarrant/shortcuts-js
Version:
An iOS 12 Shortcuts creator
27 lines • 756 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @action Show Notification
* @section Actions > Scripting > Notification
* @icon Notification
*
* Displays a local notification.
*
* ```js
* showNotification({
* title: 'Hello, World!',
* body: 'This is a test notification',
* sound: true,
* });
* ```
*/
const showNotification = ({ title = '', body = 'Hello World', sound = true, }) => ({
WFWorkflowActionIdentifier: 'is.workflow.actions.notification',
WFWorkflowActionParameters: {
WFNotificationActionTitle: title,
WFNotificationActionBody: body,
WFNotificationActionSound: sound,
},
});
exports.default = showNotification;
//# sourceMappingURL=showNotification.js.map