csharp
public sealed class DesktopPowerInfoBattery and charging state. SDL 2 reports no thermal or power-mode information.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
Thermal is Nominal and IsLowPowerMode is because SDL cannot answer either, not because the answer is known. Both are real signals on mobile, where the platform assemblies that can answer them will.
Fields and properties (5)
public PowerSource SourceWhere power is coming from.
public float? BatteryLevelHow full the battery is, [0, 1], or if there is no battery or the platform will not say.
public TimeSpan? EstimatedTimeRemainingHow long the platform thinks the battery will last, or if it does not estimate.
public ThermalState ThermalAlways Nominal: SDL 2 has no thermal query.
public bool IsLowPowerModeAlways : SDL 2 has no power-mode query.
Methods (1)
public DesktopPowerInfo(Sdl sdl)Battery and charging state. SDL 2 reports no thermal or power-mode information.
Used by (2)
- DesktopPlatformVixen.Platform.Desktop
- DesktopSupplementTestsVixen.Platform.Desktop.Tests