BatteryState.Capacity Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Get remaining battery capacity as float percentage [0.0f, 1.0f] of total capacity Returns NaN when battery capacity can't be read.
public abstract float Capacity { [Android.Runtime.Register("getCapacity", "()F", "GetGetCapacityHandler", ApiSince=31)] get; }
[<get: Android.Runtime.Register("getCapacity", "()F", "GetGetCapacityHandler", ApiSince=31)>]
member this.Capacity : single
Property Value
the battery capacity. Value is between -1.0f and 1.0f inclusive
- Attributes
Remarks
Get remaining battery capacity as float percentage [0.0f, 1.0f] of total capacity Returns NaN when battery capacity can't be read.
Android reference for android.hardware.BatteryState.getCapacity.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.