Share via


BatteryInfoChangedEventArgs Class

Definition

Battery changed information.

public class BatteryInfoChangedEventArgs : EventArgs
Inheritance
System.EventArgs
BatteryInfoChangedEventArgs

Remarks

Returns the current information of the battery.

Constructors

BatteryInfoChangedEventArgs(Double, BatteryState, BatteryPowerSource)

The public constructor.

Properties

ChargeLevel

Gets the current charge level of the device from 0.0 to 1.0.

PowerSource

Gets the current power source for the device.

State

Gets the charging state of the device if it can be determined.

Methods

ToString()

Outputs the data as a string.

Applies to