Share via


Battery.ChargeLevel Property

Definition

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

public:
 static property double ChargeLevel { double get(); };
public static double ChargeLevel { get; }
static member ChargeLevel : double
Public Shared ReadOnly Property ChargeLevel As Double

Property Value

Level of charge. Returns -1 if no battery exists.

Remarks

Returns -1 if no battery exists.

Applies to