NotificationConstructorOptions

Properties

Link copied to clipboard

Actions to add to the notification. Please read the available actions and limitations in the NotificationAction documentation.

Link copied to clipboard
abstract var body: String?

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

Link copied to clipboard
abstract var closeButtonText: String?

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

Link copied to clipboard
abstract var hasReply: Boolean?

Whether or not to add an inline reply option to the notification.

Link copied to clipboard
abstract var icon: Any?

An icon to use in the notification.

Link copied to clipboard
abstract var replyPlaceholder: String?

The placeholder to write in the inline reply input field.

Link copied to clipboard
abstract var silent: Boolean?

Whether or not to suppress the OS notification noise when showing the notification.

Link copied to clipboard
abstract var sound: String?

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

Link copied to clipboard
abstract var subtitle: String?

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

Link copied to clipboard

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

Link copied to clipboard
abstract var title: String?

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

Link copied to clipboard
abstract var toastXml: String?

A custom description of the Notification on Windows superseding all properties above. Provides full customization of design and behavior of the notification.

Link copied to clipboard

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