NotificationEventInit Class

The initialization dictionary of a NotificationEvent (https://notifications.spec.whatwg.org/#dictdef-notificationeventinit).

public sealed class NotificationEventInit : ExtendableEventInit
Inheritance
ExtendableEventInit NotificationEventInit

Constructors

NameDescription
NotificationEventInit()

NotificationEventInit()

Notification.cs
  • Obsolete: Constructors of types with required members are not supported in this version of your compiler.
[Obsolete("Constructors of types with required members are not supported in this version of your compiler.", true)]
public NotificationEventInit()

No documentation is available.

Properties

NameDescription
ActionGets the name of the activated action, or the empty string.
NotificationGets the notification.

Gets the name of the activated action, or the empty string.

public string Action { get; init; }

Notification

Notification.cs

Gets the notification.

public required Notification Notification { get; init; }