luxlabs header browser preview


@class NSLock, NSMutableDictionary, NSString, HIDElement, HIDDevice, NSMutableArray, NSObject;
@protocol OS_dispatch_source;

@interface KeyboardBacklight : CBModule <CBContainerModuleProtocol, CBHIDServiceProtocol> {
    BOOL _muted;
    BOOL _keyboardAvailable;
    BOOL _manualAdjust;
    BOOL _saturated;
    BOOL _dimmed;
    BOOL _suspend;
    BOOL _suspendDimming;
    BOOL _userActive;
    BOOL _displayOn;
    float _previousLevelPercentage;
    int _numOfBacklightUpdateRetries;
    HIDElement *_levelElement;
    HIDElement *_levelFadeSpeedElement;
    HIDElement *_enableElement;
    HIDElement *_enableFadeSpeedElement;
    NSMutableArray *_elements;
    NSMutableArray *_alsServiceClients;
    unsigned long long _activityNotificationHandle;
    NSMutableDictionary *_properties;
    NSObject<OS_dispatch_source> *_forceLuxUpdateTimer;
    NSObject<OS_dispatch_source> *_backlightUpdateTimer;
    HIDElement *_enableAuthenticationElement;
    BOOL _backlightUpdateInProgress;
    NSLock *_backlightUpdateLock;
    struct mach_timebase_info { unsigned int numer; unsigned int denom; } _clockInfo;
    int _backlightUpdateFrequency;
    unsigned long long _lastBacklightUpdate;
    unsigned long long _backlightUpdateType;
    int _turnOnBacklightDelayMS;
    BOOL _forceDelayToTurnOnBacklight;
    NSObject<OS_dispatch_source> *_rampTimer;
    struct Ramp { float start; float target; float current; double startTime; double duration; } _ramp;
    struct IONotificationPort { } *_deviceManagementArrivalNotificationPort;
    unsigned int _deviceManagementArrivalIterator;
}

@property int dimTime;
@property float ambientOffset;
@property (readonly) float ambientHighThreshold;
@property (readonly) float ambientLowThreshold;
@property BOOL userActive;
@property BOOL keyboardAvailable;
@property HIDDevice *device;
@property BOOL manualAdjust;
@property BOOL autoAdjust;
@property float levelPercentage;
@property float levelMin;
@property float levelMax;
@property float levelOff;
@property int color;
@property unsigned int levelUnit;
@property unsigned int unitExponent;
@property (readonly) float ambientSlope;
@property (readonly) float maxUserLevel;
@property float currentLux;
@property BOOL muted;
@property (retain) NSMutableDictionary *keyboardSpecificPreferences;
@property float previousLevel;
@property (readonly) BOOL suppressed;
@property BOOL saturated;
@property BOOL suspend;
@property float brightness;
@property BOOL builtIn;
@property BOOL dimmed;
@property unsigned long long keyboardID;
@property (readonly) BOOL supportsAuthentication;
@property (readonly) unsigned long long hash;
@property (readonly) Class superclass;
@property (readonly, copy) NSString *description;
@property (readonly, copy) NSString *debugDescription;

+ (unsigned long long)getHashIDForDevice:(id)a0;

- (BOOL)handleHIDEvent:(struct __IOHIDEvent { } *)a0 from:(struct __IOHIDServiceClient { } *)a1;
- (BOOL)addHIDServiceClient:(struct __IOHIDServiceClient { } *)a0;
- (void)sendNotificationForKey:(id)a0 withValue:(id)a1;
- (id)copyPropertyForKey:(id)a0;
- (id)initWithQueue:(id)a0;
- (void)toggleMute;
- (void)dealloc;
- (void)start;
- (void)setBacklightLevel:(float)a0;
- (float)level;
- (void)stop;
- (void)timerRoutine:(id)a0;
- (BOOL)setProperty:(id)a0 forKey:(id)a1;
- (id)copyPropertyForKey:(id)a0 withParameter:(id)a1;
- (BOOL)removeHIDServiceClient:(struct __IOHIDServiceClient { } *)a0;
- (void)handleNotificationForKey:(id)a0 withProperty:(id)a1;
- (BOOL)KBAutoBrightnessEnablePropertyHandler:(id)a0;
- (BOOL)KBAvailabilityUpdateHandler:(id)a0;
- (BOOL)KBBrightnessPropertyHandler:(id)a0;
- (BOOL)KBIdleDimPropertyHandler:(id)a0;
- (BOOL)KBSuspendDimmingPropertyHandler:(id)a0;
- (BOOL)KBUserActivityUpdateHandler:(id)a0;
- (BOOL)KBAuthenticationHandler:(id)a0;
- (BOOL)KBAutoBrightnessSuspendPropertyHandler:(id)a0;
- (BOOL)KBBacklightLevelPropertyHandler:(id)a0;
- (BOOL)KBDisplayBrightnessFactorPropertyHandler:(id)a0;
- (BOOL)KBIdleDimTimeHandler:(id)a0;
- (BOOL)KBUpdateFrequencyHandler:(id)a0;
- (BOOL)KBUserOffsetPropertyHandler:(id)a0;
- (id)brightnessUpdateReasonToString:(unsigned long long)a0;
- (void)getKeyboardBacklightPreferences;
- (void)setKBPreferenceBacklightMaxUser;
- (void)calculateLevelPercentageAtAmbient:(float)a0;
- (float)currentLuxToAmbient;
- (void)didUpdateBacklightLevel:(float)a0 brightness:(float)a1 result:(BOOL)a2 error:(id)a3;
- (void)endKeyDim;
- (void)forceBacklightUpdateRoutine;
- (void)forceLuxUpdate;
- (void)forceLuxUpdateRoutine;
- (void)getCurrentLux;
- (void)handleDeviceManagementArrival:(unsigned int)a0;
- (void)handleLuxUpdate:(float)a0;
- (void)handlePMUserActivityStateChanged:(unsigned long long)a0;
- (id)initWithQueue:(id)a0 device:(id)a1;
- (id)initWithQueue:(id)a0 device:(id)a1 ambientOffset:(float)a2;
- (void)rampToBrightness:(float)a0 withDuration:(unsigned int)a1;
- (void)resetKeyDimTimeout;
- (BOOL)retrieveKeyboardBacklightElements;
- (void)scheduleBacklightUpdate:(int)a0;
- (void)sendSuppressedNotification:(BOOL)a0;
- (void)setBrightness:(float)a0 withFadeSpeed:(int)a1 commit:(BOOL)a2;
- (void)startKBDeviceManagementServiceLookup;
- (void)startRamp;
- (void)stopKBDeviceManagementServiceLookup;
- (void)stopRamp;
- (void)storeKeyboardBacklightPreferences;
- (double)timeToNextBacklightUpdate;
- (void)updateAmbientOffset;
- (void)updateAuthentication:(BOOL)a0;
- (void)updateBacklightDevice;
- (void)updateBacklightDeviceWithFadeSpeed:(int)a0 commit:(BOOL)a1 reason:(unsigned long long)a2;
- (void)updateBacklightDeviceWithReason:(unsigned long long)a0;

@end