Skip to content

NotificationEventContext ​

Namespace: Hex1b

Assembly: Hex1b.dll

Context passed to notification lifecycle event handlers (dismiss, timeout).

csharp
public class NotificationEventContext

Inheritance ​

Object → NotificationEventContext

Properties ​

CancellationToken ​

Cancellation token from the application run loop.

Returns: CancellationToken

csharp
public CancellationToken CancellationToken { get; }

Notification ​

The notification this event is for.

Returns: Notification

csharp
public Notification Notification { get; }

Methods ​

Dismiss() ​

Dismisses this notification, removing it from the stack entirely.

csharp
public void Dismiss()

Remarks ​

This context is passed to handlers registered with and . It provides access to the notification itself and the ability to dismiss it.

Difference from : This context is for lifecycle events (dismiss/timeout), not action button clicks. It does not have access to the input trigger since these events may be triggered programmatically.

Released under the MIT License.