Files
wehub-resource-sync 1d1286fadb
Build / Build and test (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:18:38 +08:00

26 lines
920 B
Objective-C

// References:
// https://github.com/smunkelwitz/NightShiftManager
// https://github.com/antonfisher/night-shift-cli
// License notes are tracked in Sources/Resources/ThirdPartyNotices.
#include <Foundation/Foundation.h>
typedef struct {
BOOL active; // whether the blue light reduction session is active (always true on supported hardware)
BOOL enabled; // whether night shift is currently reducing blue light (user-controlled on/off state)
BOOL sunSchedulePermitted;
int mode; // 0 = off, 1 = scheduled (sunset to sunrise), 2 = always on
struct {
int hour;
int minute;
} scheduledStart, scheduledEnd;
unsigned long long disableFlags;
BOOL available;
} CBBlueLightStatus;
@interface CBBlueLightClient : NSObject
- (BOOL)getBlueLightStatus:(CBBlueLightStatus *)status;
- (BOOL)setEnabled:(BOOL)enabled;
- (BOOL)setStrength:(float)strength commit:(BOOL)commit;
@end