Skip to main content

StatusPower

Namespace: Busy.Bar

Power and battery status.

public sealed record class StatusPower : System.IEquatable`1[[Busy.Bar.StatusPower, BusyBar, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]

Inheritance Object → StatusPower
Implements IEquatable<StatusPower>
Attributes NullableContextAttribute, NullableAttribute

Properties

State

Current power/charging state.

public PowerState State { get; init; }

Property Value

PowerState

BatteryCharge

Battery charge, as a percentage.

public int BatteryCharge { get; init; }

Property Value

Int32

BatteryVoltage

Battery voltage, in millivolts.

public int BatteryVoltage { get; init; }

Property Value

Int32

BatteryCurrent

Battery current, in milliamps. Negative values indicate discharge.

public int BatteryCurrent { get; init; }

Property Value

Int32

UsbVoltage

USB input voltage, in millivolts.

public int UsbVoltage { get; init; }

Property Value

Int32

Constructors

StatusPower(PowerState, Int32, Int32, Int32, Int32)

Power and battery status.

public StatusPower(PowerState State, int BatteryCharge, int BatteryVoltage, int BatteryCurrent, int UsbVoltage)

Parameters

State PowerState
Current power/charging state.

BatteryCharge Int32
Battery charge, as a percentage.

BatteryVoltage Int32
Battery voltage, in millivolts.

BatteryCurrent Int32
Battery current, in milliamps. Negative values indicate discharge.

UsbVoltage Int32
USB input voltage, in millivolts.