@joshfarrant/shortcuts-js
Version:
An iOS 12 Shortcuts creator
26 lines (25 loc) • 687 B
TypeScript
import WFWorkflowAction from '../interfaces/WF/WFWorkflowAction';
/**
* @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,
* });
* ```
*/
declare const showNotification: ({ title, body, sound, }: {
/** Title for the notification */
title?: string | undefined;
/** Body for the notification */
body?: string | undefined;
/** Enable or disable sound for the notification */
sound?: boolean | undefined;
}) => WFWorkflowAction;
export default showNotification;