setScreenFlash static method
- bool enabled
Turns the screen flash on or off for front-camera captures.
A front camera without a torch is lit by the screen when
Participant.captureImage runs with CaptureFlash.ON: true installs
the built-in white overlay, which covers the app's window in warm white
at full brightness for the capture; false captures unlit. Off until you
call this, as on the Android and iOS SDKs.
Example
await VideoSDK.setScreenFlash(true);
Implementation
static Future<void> setScreenFlash(bool enabled) {
return _channel.invokeMethod(
'setScreenFlash', {'type': enabled ? 'whiteOverlay' : null});
}