Instance Property torch Active
A Boolean value indicating whether the device’s torch is currently active.
iOS 6.0+ macOS 10.15+ Beta UIKit for Mac 13.0+ Beta Declaration @property(nonatomic, readonly, getter=isTorchActive) BOOL torchActive;
A torch must be present on the device and currently available before it can be active.
You can observe changes to the value of this property using
Key-value observing. See Also Managing Torch Settings has Torch
A Boolean value that specifies whether the capture device has a torch.
Indicates whether the torch is currently available for use.
- is Torch Mode Supported:
Returns a Boolean value that indicates whether the device supports the specified torch mode.
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