setCameraTorch method
@hidden(macOS)
@detail api
@brief Turns on/off the flash of the currently used camera.
@param torchState
Fill light status. See ByteRTCTorchState{@link #ByteRTCTorchState}
@return
- 0: Success
- -1: Failure. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more details.
Implementation
FutureOr<int> setCameraTorch(ByteRTCTorchState torchState) async {
return await nativeCall('setCameraTorch:', [torchState.$value]);
}