RAGS - v1.10.0
    Preparing search index...

    Variable notify

    notify: {
        (args: NotificationArgs): Promise<number>;
        (summary: string, body?: string, iconName?: string): Promise<number>;
    }

    Type Declaration

      • (args: NotificationArgs): Promise<number>
      • Sends a desktop notification.

        Uses the built-in notification daemon if it's running, otherwise falls back to libnotify. Requires libnotify as an optional runtime dependency for the fallback path.

        Parameters

        Returns Promise<number>

        The notification ID

        // Simple form
        await notify('Hello', 'World', 'dialog-information');

        // Object form with actions
        await notify({
        summary: 'Download Complete',
        body: 'file.zip has finished downloading',
        actions: { 'Open': () => exec('xdg-open file.zip') },
        });
      • (summary: string, body?: string, iconName?: string): Promise<number>
      • Sends a desktop notification.

        Uses the built-in notification daemon if it's running, otherwise falls back to libnotify. Requires libnotify as an optional runtime dependency for the fallback path.

        Parameters

        • summary: string
        • Optionalbody: string
        • OptionaliconName: string

        Returns Promise<number>

        The notification ID

        // Simple form
        await notify('Hello', 'World', 'dialog-information');

        // Object form with actions
        await notify({
        summary: 'Download Complete',
        body: 'file.zip has finished downloading',
        actions: { 'Open': () => exec('xdg-open file.zip') },
        });