DesktopOpenRequest record

Namespace Runic.Platform in Runic.Platform 0.23.0

public sealed record DesktopOpenRequest : IEquatable<DesktopOpenRequest>

Inherits or implements IEquatable.

Files and URLs the desktop asked the application to open, in the order it gave them.

Parameters

Items

Absolute URIs: file: URIs for files, and URIs with one of the application's registered schemes for URLs.

Remarks

Treat every item as untrusted input at the application boundary: any website or local program can open a URL with the application's scheme, and a file can come from anywhere. Validate a URL before acting on it, and confirm anything destructive with the user.

Constructors

DesktopOpenRequest

public DesktopOpenRequest(ImmutableArray<Uri> Items)

Files and URLs the desktop asked the application to open, in the order it gave them.

Parameters

Items

Absolute URIs: file: URIs for files, and URIs with one of the application's registered schemes for URLs.

Remarks

Treat every item as untrusted input at the application boundary: any website or local program can open a URL with the application's scheme, and a file can come from anywhere. Validate a URL before acting on it, and confirm anything destructive with the user.

Properties

Items

public ImmutableArray<Uri> Items { get; init; }

Absolute URIs: file: URIs for files, and URIs with one of the application's registered schemes for URLs.

PlatformContext

public DesktopActivationContext? PlatformContext { get; init; }

Short-lived desktop activation data for raising a window. Dispatch promptly; do not persist it.