For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /lynxtron/api/@lynx-js/lynxtron/Interface.NotificationConstructorOptions.md.
  • English
  • @lynx-js/lynxtron / NotificationConstructorOptions

    NotificationConstructorOptions

    Properties

    actions?
    macOS

    optional actions: NotificationAction[];

    Actions to add to the notification.

    Defined in

    apis/api/notification.d.ts:78


    body?

    optional body: string;

    The body text of the notification, which will be displayed below the title or subtitle.

    Defined in

    apis/api/notification.d.ts:34


    closeButtonText?
    macOS

    optional closeButtonText: string;

    A custom title for the close button of an alert. An empty string will cause the default localized text to be used.

    Defined in

    apis/api/notification.d.ts:85


    hasReply?
    macOS

    optional hasReply: boolean;

    Whether or not to add a reply option to the notification.

    Defined in

    apis/api/notification.d.ts:48


    icon?

    optional icon: string;

    An icon to use in the notification.

    Defined in

    apis/api/notification.d.ts:42


    replyPlaceholder?
    macOS

    optional replyPlaceholder: string;

    The placeholder to write in the reply input field.

    Defined in

    apis/api/notification.d.ts:60


    silent?

    optional silent: boolean;

    Whether to show the notification without sound.

    Defined in

    apis/api/notification.d.ts:38


    sound?
    macOS

    optional sound: string;

    The name of the sound file to play when the notification is shown.

    Defined in

    apis/api/notification.d.ts:66


    subtitle?
    macOS

    optional subtitle: string;

    A subtitle for the notification, which will be displayed below the title.

    Defined in

    apis/api/notification.d.ts:29


    timeoutType?
    Windows

    optional timeoutType: "default" | "never";

    The timeout duration of the notification. Can be 'default' or 'never'.

    Defined in

    apis/api/notification.d.ts:54


    title?

    optional title: string;

    A title for the notification, which will be shown at the top of the notification window when it is shown.

    Defined in

    apis/api/notification.d.ts:23


    toastXml?
    Windows

    optional toastXml: string;

    A custom XML string to use for the toast notification.

    Defined in

    apis/api/notification.d.ts:91


    urgency? linux

    optional urgency: "normal" | "critical" | "low";

    The urgency level of the notification. Can be 'normal', 'critical', or 'low'.

    Defined in

    apis/api/notification.d.ts:72

    Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.