Indicates whether the torch is currently available for use.
SDKs
- iOS 5.0+
- macOS 10.15+
- Mac Catalyst 13.0+
Framework
- AVFoundation
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.