Share via


BatteryInfoChangedEventArgs Class

Definition

Event arguments containing the current reading of IBattery.

public ref class BatteryInfoChangedEventArgs : EventArgs
public class BatteryInfoChangedEventArgs : EventArgs
type BatteryInfoChangedEventArgs = class
    inherit EventArgs
Public Class BatteryInfoChangedEventArgs
Inherits EventArgs
Inheritance
BatteryInfoChangedEventArgs

Remarks

Returns the current information of the battery.

Constructors

BatteryInfoChangedEventArgs(Double, BatteryState, BatteryPowerSource)

Initializes a new instance of the BatteryInfoChangedEventArgs class.

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.

Methods

ToString()

Returns a string representation of this instance of BatteryInfoChangedEventArgs.

Applies to