Skip to content

BRPtouchBatteryInfo

BRPtouchBatteryInfo class contains the battery health information.

Properties

batteryChargeLevel

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

Declaration

@property (nonatomic, readonly) int8_t  batteryChargeLevel;

batteryHealthLevel

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

Declaration

@property (nonatomic, readonly) int8_t  batteryHealthLevel;

batteryHealthStatus

The battery deterioration state. You can know the numeric value via batteryHealthLevel.

Declaration

@property (nonatomic, readonly) BRPtouchBatteryInfoBatteryHealthStatus batteryHealthStatus;

Types

BRPtouchBatteryInfoBatteryHealthStatus

enum to indicate battery deterioration state.

Declaration

typedef NS_ENUM(NSUInteger, BRPtouchBatteryInfoBatteryHealthStatus) {
    BRPtouchBatteryInfoBatteryHealthStatusExcellent,
    BRPtouchBatteryInfoBatteryHealthStatusGood,
    BRPtouchBatteryInfoBatteryHealthStatusReplaceSoon,
    BRPtouchBatteryInfoBatteryHealthStatusReplaceBattery,
    BRPtouchBatteryInfoBatteryHealthStatusNotInstalled,
};

Constants

Constant Description
BRPtouchBatteryInfoBatteryHealthStatusExcellent Excellent
BRPtouchBatteryInfoBatteryHealthStatusGood Good
BRPtouchBatteryInfoBatteryHealthStatusReplaceSoon Need to replace battery soon
BRPtouchBatteryInfoBatteryHealthStatusReplaceBattery Need to replace battery
BRPtouchBatteryInfoBatteryHealthStatusNotInstalled Battery not mounted