NotificationOptions Class
The options of a notification (https://notifications.spec.whatwg.org/#dictdef-notificationoptions).
public sealed class NotificationOptionsConstructors
| Name | Description |
|---|---|
| NotificationOptions() |
NotificationOptions()
Notification.cspublic NotificationOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| Actions | Gets the actions of the notification. The library does not support the actions: the list must be empty. |
| Badge | Gets the URL of the badge of the notification. |
| Body | Gets the body of the notification. |
| Data | Gets the data of the notification (a value that can be serialized by the structured clone algorithm). |
| Dir | Gets the direction of the text. |
| Icon | Gets the URL of the icon of the notification. |
| Image | Gets the URL of the image of the notification. |
| Lang | Gets the language of the text (a BCP 47 language tag, or the empty string). |
| Navigate | Gets the URL to navigate to when the notification is activated. |
| Renotify | Gets whether the user is alerted again when the notification replaces another one. |
| RequireInteraction | Gets whether the notification stays until the user activates or closes it. |
| Silent | Gets whether the notification is silent (no sound nor vibration), or null for the default of the device. |
| Tag | Gets the tag of the notification: a notification replaces the notification of the same origin with the same tag. |
| Timestamp | Gets the time of the notification, in milliseconds since the Unix epoch (the current time by default). |
Actions
Notification.csGets the actions of the notification. The library does not support the actions: the list must be empty.
public IReadOnlyList<NotificationAction> Actions { get; init; }Badge
Notification.csGets the URL of the badge of the notification.
public string? Badge { get; init; }Body
Notification.csGets the body of the notification.
public string Body { get; init; }Data
Notification.csGets the data of the notification (a value that can be serialized by the structured clone algorithm).
public object? Data { get; init; }Gets the direction of the text.
public NotificationDirection Dir { get; init; }Property value
See also
Icon
Notification.csGets the URL of the icon of the notification.
public string? Icon { get; init; }Image
Notification.csGets the URL of the image of the notification.
public string? Image { get; init; }Lang
Notification.csGets the language of the text (a BCP 47 language tag, or the empty string).
public string Lang { get; init; }Renotify
Notification.csGets whether the user is alerted again when the notification replaces another one.
public bool Renotify { get; init; }RequireInteraction
Notification.csGets whether the notification stays until the user activates or closes it.
public bool RequireInteraction { get; init; }Property value
See also
Silent
Notification.csGets whether the notification is silent (no sound nor vibration), or null for the default of the device.
public bool? Silent { get; init; }Gets the tag of the notification: a notification replaces the notification of the same origin with the same tag.
public string Tag { get; init; }Timestamp
Notification.csGets the time of the notification, in milliseconds since the Unix epoch (the current time by default).
public ulong? Timestamp { get; init; }