isCameraTorchSupported abstract method
Checks whether the device supports keeping the flashlight on.
This method is only applicable to Android and iOS. You must call this method after the SDK triggers the onLocalVideoStateChanged callback and the local video state returns localVideoStreamStateCapturing (1). Typically, the app enables the front camera by default. If your front camera does not support keeping the flashlight on, this method returns false. If you want to check whether the rear camera supports keeping the flashlight on, you need to call switchCamera to switch the camera before using this method. On iPads with system version 15, even if isCameraTorchSupported returns true, due to system issues, you may still fail to turn on the flashlight using setCameraTorchOn.
Returns true : The device supports keeping the flashlight on. false : The device does not support keeping the flashlight on.
Implementation
Future<bool> isCameraTorchSupported();