Fray Electron
    Preparing search index...

    Interface NotificationOptions

    Content and behavior supplied when creating a notification.

    interface NotificationOptions {
        description?: string;
        engineReported?: boolean;
        icon?: any;
        onDescriptionClick?: () => void;
        timeoutMs?: number | null;
        title: string;
        type: NotificationType;
    }
    Index
    description?: string

    Optional detail text; clickable when onDescriptionClick is supplied.

    engineReported?: boolean

    True when the Engine already recorded this notification, so the renderer must not report it again.

    icon?: any

    Optional custom icon; null hides it, and undefined uses the severity default.

    onDescriptionClick?: () => void

    Runs when the description link is clicked.

    timeoutMs?: number | null

    Auto-dismiss delay in milliseconds; undefined defaults to 4000, null disables the timer.

    title: string

    Nonempty notification title.

    Severity, which also chooses the default icon and accessibility role.