Contents

torchLevel

The current torch brightness level.

Declaration

var torchLevel: Float { get }

Discussion

The value of this property is a floating-point number whose value is in the range 0.0 to 1.0. A torch level of 0.0 indicates that the torch is off. A torch level of 1.0 represents the theoretical maximum value, although the actual maximum value may be lower if the device is currently overheated.

This property is key-value observable.

See Also

Configuring torch settings