Global Variable

AVCaptureMaxAvailableTorchLevel

Declaration

const float AVCaptureMaxAvailableTorchLevel;

Discussion

This constant always represents the maximum available torch level, independent of the actual maximum value currently supported by the device. Thus, pass this constant to the setTorchModeOnWithLevel:error: in situations where you want to specify the maximum torch level without having to worry about whether the device is overheating and might not accept a value of 1.0 as the maximum.

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.

AVCaptureTorchMode

Constants to specify the capture device’s torch mode.

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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software