torch_light library

Classes

TorchLight
This is the main class of the plugin from which it is possible to check whether the device has a torch or not, and to turn it on and off.

Exceptions / Errors

DisableTorchException
Exception thrown when an error occurred while trying to turn off the device torch.
DisableTorchExistentUserException
Exception thrown when an attempt was made to turn off the torch but it was detected that the camera was being used by another process. This means that the torch cannot be controlled.
DisableTorchNotAvailableException
Exception thrown when an attempt was made to turn off the torch but it was detected that the device does not have one equipped.
EnableTorchException
Exception thrown when an error occurred while trying to turn on the device torch.
EnableTorchExistentUserException
Exception thrown when an attempt was made to turn on the torch but it was detected that the camera was being used by another process. This means that the torch cannot be controlled.
EnableTorchNotAvailableException
Exception thrown when an attempt was made to turn on the torch but it was detected that the device does not have one equipped.