24 lines
540 B
Objective-C
24 lines
540 B
Objective-C
//
|
|
// MMBatteryTelemetryProvider.h
|
|
// MacMonitor
|
|
//
|
|
// Telemetry provider for AppleSmartBattery health, cycle count, capacity, and adapter info.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import "MMTelemetryProvider.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface MMBatteryTelemetryProvider : NSObject <MMTelemetryProvider>
|
|
|
|
@property (nonatomic, readonly) BOOL hasBattery;
|
|
|
|
- (instancetype)init;
|
|
|
|
+ (NSDictionary<NSString *, id> *)calculateBatteryHealthWithProperties:(nullable NSDictionary<NSString *, id> *)rawProps;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|