Class NotificationOptions
java.lang.Object
org.vaadin.firitin.util.webnotification.NotificationOptions
Represents options for a web notification (mostly autogenerated with ChatGPT).
This class provides various properties that can be set to customize the appearance and behavior of a web notification. It includes fields for badge, body, data, direction, icon, image, language, renotify, require interaction, silent mode, tag, timestamp, and vibration patterns.
The actions have been left out intentionally, as they are only relevant for web push notifications, that need service worker and those are not supported by Vaadin already.
- 
Nested Class Summary
Nested Classes - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiongetBadge()getBody()getData()getDir()getIcon()getImage()getLang()getTag()voidDeprecated.Badge is not supported by Firefox and Safari, so it is not recommended to use.voidvoidvoidvoidDeprecated.Icon is not supported by Safari, so it is not recommended to use.voidDeprecated.Only supported by Chromium-based browsersvoidvoidsetRenotify(Boolean renotify) Deprecated.Renotify is not supported by Firefox and Safari, so it is not recommended to use.voidsetRequireInteraction(Boolean requireInteraction) Deprecated.Require interaction is not supported by Firefox and Safari, so it is not recommended to use.voidvoidDeprecated.Tag is not supported by Safari, so it is not recommended to use.voidsetTimestamp(Instant timestamp) Deprecated.Timestamp is not supported by Firefox and Safari, so it is not recommended to use.voidsetVibrate(List<Long> vibrate) Deprecated.Vibration is not supported by Firefox and Safari, so it is not recommended to use.toString() 
- 
Constructor Details
- 
NotificationOptions
public NotificationOptions() 
 - 
 - 
Method Details
- 
getBadge
 - 
setBadge
Deprecated.Badge is not supported by Firefox and Safari, so it is not recommended to use. - 
getBody
 - 
setBody
 - 
getData
 - 
setData
 - 
getDir
 - 
setDir
 - 
getIcon
 - 
setIcon
Deprecated.Icon is not supported by Safari, so it is not recommended to use. - 
getImage
 - 
setImage
Deprecated.Only supported by Chromium-based browsers - 
getLang
 - 
setLang
 - 
getRenotify
 - 
setRenotify
Deprecated.Renotify is not supported by Firefox and Safari, so it is not recommended to use. - 
getRequireInteraction
 - 
setRequireInteraction
Deprecated.Require interaction is not supported by Firefox and Safari, so it is not recommended to use. - 
getSilent
 - 
setSilent
 - 
getTag
 - 
setTag
Deprecated.Tag is not supported by Safari, so it is not recommended to use. - 
getTimestamp
 - 
setTimestamp
Deprecated.Timestamp is not supported by Firefox and Safari, so it is not recommended to use. - 
getVibrate
 - 
setVibrate
Deprecated.Vibration is not supported by Firefox and Safari, so it is not recommended to use. - 
toString
 
 -