Enumeration

AVCaptureTorchMode

Constants to specify the capture device’s torch mode.

Declaration

typedef enum AVCaptureTorchMode : NSInteger {
    ...
} AVCaptureTorchMode;

Topics

Constants

AVCaptureTorchModeOff

The capture device torch is always off.

AVCaptureTorchModeOn

The capture device torch is always on.

AVCaptureTorchModeAuto

The capture device continuously monitors light levels and uses the torch when necessary.

See Also

Managing Torch Settings

hasTorch

A Boolean value that specifies whether the capture device has a torch.

torchAvailable

Indicates whether the torch is currently available for use.

torchActive

A Boolean value indicating whether the device’s torch is currently active.

torchLevel

The current torch brightness level.

torchMode

The current torch mode.

- isTorchModeSupported:

Returns a Boolean value that indicates whether the device supports the specified torch mode.

- setTorchModeOnWithLevel:error:

Sets the illumination level when in torch mode.