DesktopPowerEvent record

Namespace Runic.Platform in Runic.Platform 0.23.0

public sealed record DesktopPowerEvent : IEquatable<DesktopPowerEvent>

Inherits or implements IEquatable.

A power or session event, with the state after it.

Parameters

Kind

What happened.

State

The state after the event.

Constructors

DesktopPowerEvent

public DesktopPowerEvent(DesktopPowerEventKind Kind, DesktopPowerState State)

A power or session event, with the state after it.

Parameters

Kind

What happened.

State

The state after the event.

Properties

Kind

public DesktopPowerEventKind Kind { get; init; }

What happened.

State

public DesktopPowerState State { get; init; }

The state after the event.