Skip to content

BRLMBatteryInfo

BRLMBatteryInfo class contains the battery health information.

Properties

chargeLevel

The battery charge level from 0 to 100 (%). -1 if not installed.

Declaration

@property (nonatomic, readonly) NSInteger chargeLevel;

healthLevel

The battery health level from 0 to 100 (%). -1 if not installed.

Declaration

@property (nonatomic, readonly) NSInteger healthLevel;

batteryHealthStatus

The battery deterioration state.

Declaration

@property (nonatomic, readonly) BRLMBatteryInfoHealthStatus healthStatus;

Types

BRLMBatteryInfoHealthStatus

enum to indicate battery deterioration state.

Declaration

typedef NS_ENUM(NSInteger, BRLMBatteryInfoHealthStatus ) {
        BRLMBatteryInfoHealthStatusExcellent = 0,
        BRLMBatteryInfoHealthStatusGood = 1,
        BRLMBatteryInfoHealthStatusReplaceSoon = 2,
        BRLMBatteryInfoHealthStatusReplaceBattery = 3,
        BRLMBatteryInfoHealthStatusNotInstalled = 7,
};

Constants

Constant Description
BRLMBatteryInfoHealthStatusExcellent Excellent
BRLMBatteryInfoHealthStatusGood Good
BRLMBatteryInfoHealthStatusReplaceSoon Need to replace battery soon
BRLMBatteryInfoHealthStatusReplaceBattery Need to replace battery
BRLMBatteryInfoHealthStatusNotInstalled Battery not mounted