Instance Property

torchAvailable

Indicates whether the torch is currently available for use.

Declaration

@property(nonatomic, readonly, getter=isTorchAvailable) BOOL torchAvailable;

Discussion

The torch may become unavailable if, for example, the device overheats and needs to cool off.

You can observe changes to the value of this property using Key-value observing.

See Also

Managing Torch Settings

hasTorch

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

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.