Skip to content

ElectronNotificationConstructorOptions

Unofficial

Options for constructing an ElectronNotification.

Import:

import type { ElectronNotificationConstructorOptions } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

export interface ElectronNotificationConstructorOptions

Properties

PropertyTypeDescription
actions?ElectronNotificationAction[]Actions to add to the notification. Please read the available actions and limitations in the ElectronNotificationAction documentation. darwin only.
body?stringThe body text of the notification, which will be displayed below the title or subtitle.
closeButtonText?stringA custom title for the close button of an alert. An empty string will cause the default localized text to be used. darwin only.
hasReply?booleanWhether or not to add an inline reply option to the notification. darwin only.
icon?ElectronNativeImage | stringAn icon to use in the notification.
replyPlaceholder?stringThe placeholder to write in the inline reply input field. darwin only.
silent?booleanWhether or not to emit an OS notification noise when showing the notification.
sound?stringThe name of the sound file to play when the notification is shown. darwin only.
subtitle?stringA subtitle for the notification, which will be displayed below the title. darwin only.
timeoutType?'default' | 'never'The timeout duration of the notification. Can be default or never. linux and win32 only.
title?stringA title for the notification, which will be shown at the top of the notification window when it is shown.
toastXml?stringA custom description of the notification on Windows superseding all properties above. Provides full customization of design and behavior of the notification. win32 only.
urgency?'critical' | 'low' | 'normal'The urgency level of the notification. Can be normal, critical, or low. linux only.