DesktopStatusIconActivation record

Namespace Runic.Platform in Runic.Platform 0.23.0

public sealed record DesktopStatusIconActivation : IEquatable<DesktopStatusIconActivation>

Inherits or implements IEquatable.

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

Parameters

Kind

How the user activated the icon.

CommandId

The DesktopMenuItem.CommandId of the chosen item for DesktopStatusIconActivationKind.MenuItem; otherwise null.

Constructors

DesktopStatusIconActivation

public DesktopStatusIconActivation(DesktopStatusIconActivationKind Kind, string? CommandId = null)

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

Parameters

Kind

How the user activated the icon.

CommandId

The DesktopMenuItem.CommandId of the chosen item for DesktopStatusIconActivationKind.MenuItem; otherwise null.

Properties

CommandId

public string? CommandId { get; init; }

The DesktopMenuItem.CommandId of the chosen item for DesktopStatusIconActivationKind.MenuItem; otherwise null.

CommandParameter

public string? CommandParameter { get; init; }

Gets the DesktopMenuItem.CommandParameter of the chosen item for DesktopStatusIconActivationKind.MenuItem; otherwise null.

Remarks

Untrusted input like DesktopStatusIconActivation.CommandId: check it against the application's own state.

Kind

public DesktopStatusIconActivationKind Kind { get; init; }

How the user activated the icon.

PlatformContext

public DesktopActivationContext? PlatformContext { get; init; }

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