Files
MacMonitor/Sources/Telemetry/Power/MMBatteryTelemetryProvider.h
gronod 6c34cf3c86
MacMonitor CI/CD Pipeline / Build & Test (Intel x86_64) (push) Canceled after 0s
feat(telemetry): implement AppleSmartBattery health telemetry provider (fixes #17)
2026-09-08 12:46:22 +01:00

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