Skip to content

Notification

Alerts, notifications, and banners.

import Notification;

showAlert

Displays an alert with a title, a message, and two buttons. If the user selects the OK button, the shortcut continues. The cancel button stops the shortcut.

showAlert(WFAlertActionTitle: Text, WFAlertActionMessage: Text, WFAlertActionCancelButtonShown: Boolean)
ParameterTypeDefault
WFAlertActionTitleText
WFAlertActionMessageText"Do you want to continue?"
WFAlertActionCancelButtonShownBooleantrue

Shortcuts action: is.workflow.actions.alert

showContent

Shows a preview of the provided content. If run from Siri, speaks the provided text.

showContent(Text: Text)
ParameterTypeDefault
TextText""

Shortcuts action: is.workflow.actions.showresult

showContentGraph

Shows the results of the previous action in the Content Graph.

showContentGraph(WFInput: Any)
ParameterTypeDefault
WFInputAny

Shortcuts action: is.workflow.actions.viewresult

showNotification

Displays a local notification.

showNotification(WFNotificationActionTitle: Text, WFNotificationActionBody: Text, WFNotificationActionSound: Boolean, WFInput: Any)
ParameterTypeDefault
WFNotificationActionTitleText
WFNotificationActionBodyText
WFNotificationActionSoundBooleantrue
WFInputAny

Shortcuts action: is.workflow.actions.notification