DesktopNotificationActivation record

Namespace Runic.Platform in Runic.Platform 0.23.0

public sealed record DesktopNotificationActivation : IEquatable<DesktopNotificationActivation>

Inherits or implements IEquatable.

A user action on a notification. Treat activation as untrusted input at the application boundary.

Constructors

DesktopNotificationActivation

public DesktopNotificationActivation(string NotificationId, string ActionId, Uri? ActivationUri = null)

A user action on a notification. Treat activation as untrusted input at the application boundary.

Properties

ActionId

public string ActionId { get; init; }

No documentation.

ActivationUri

public Uri? ActivationUri { get; init; }

No documentation.

IsTrusted

public bool IsTrusted { get; init; }

Whether the provider matched this activation to a notification the application showed, so that DesktopNotificationActivation.NotificationId, DesktopNotificationActivation.ActionId and DesktopNotificationActivation.ActivationUri are the ones the application supplied. False for an activation the provider could not match, such as a Linux activation that arrives after a restart, which any process on the session bus can also send: validate its identifiers against the application's own state, and its DesktopNotificationActivation.ActivationUri is null unless it is an http, https or mailto URI.

Remarks

Windows and macOS activations, and Linux activations of a notification shown by the running process, are trusted.

NotificationId

public string NotificationId { get; init; }

No documentation.

PlatformContext

public DesktopActivationContext? PlatformContext { get; init; }

Short-lived desktop activation data. Dispatch promptly; do not persist it.