Interface NotificationsAPI

interface NotificationsAPI {
    Show(
        title: string,
        message: string,
        type: "info" | "warning" | "error",
    ): void;
}

Methods

Methods

  • Displays a desktop notification toast.

    Parameters

    • title: string

      Notification title text.

    • message: string

      Notification body text.

    • type: "info" | "warning" | "error"

      Optional visual style hint (default: "info"). Ignored on platforms that do not support typed notifications.

    Returns void

    Notifications.Show("Macro Complete", "The automation finished.", "info");