ALTorchManager Class Reference

Inherits from NSObject
Conforms to ALFlashButtonStatusDelegate
Declared in ALTorchManager.h

  captureDevice

@property (nullable, nonatomic, weak) AVCaptureDevice *captureDevice

  flashStatus

@property (nonatomic, assign) ALFlashStatus flashStatus

– setLevelForAutoFlash:

- (void)setLevelForAutoFlash:(int)brightness

– setCountForAutoFlash:

- (void)setCountForAutoFlash:(int)brightnessCount

– resetLightLevelCounter

- (void)resetLightLevelCounter

– calculateBrightnessCount:

- (void)calculateBrightnessCount:(float)brightness

– setTorch:

- (void)setTorch:(BOOL)onOff

– torchAvailable

- (BOOL)torchAvailable

– setTorchModeOnWithLevel:error:

- (BOOL)setTorchModeOnWithLevel:(float)torchLevel error:(NSError *_Nullable *_Nullable)error

– initWithCaptureDevice:

- (_Nullable instancetype)initWithCaptureDevice:(AVCaptureDevice *_Nullable)captureDevice