Show / Hide Table of Contents

Struct BatteryInfo

A struct containing information about the battery status of the computer.

Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: OpenTK.Core.Platform
Assembly: OpenTK.Core.dll
Syntax
public struct BatteryInfo

Fields

BatteryPercent

A percentage value (in the range [0, 100]) describing how many percent of full charge is left, or null if no such value is available.

Declaration
public float? BatteryPercent
Field Value
Type Description
float?

BatteryTime

An estimate in seconds of how much battery charge is left, or null if no such value is available.

Declaration
public float? BatteryTime
Field Value
Type Description
float?

Charging

Whether the battery is charging or not.

Declaration
public bool Charging
Field Value
Type Description
bool

OnAC

Whether the computer is running on AC power.

Declaration
public bool OnAC
Field Value
Type Description
bool

PowerSaver

Whether battery saver is on or not. If on, try to conserve power.

Declaration
public bool PowerSaver
Field Value
Type Description
bool

Methods

ToString()

Returns the fully qualified type name of this instance.

Declaration
public override string ToString()
Returns
Type Description
string

The fully qualified type name.

Overrides
ValueType.ToString()
In this article
Back to top Generated by DocFX