onCameraToggled method

Future<void> onCameraToggled(
  1. String sessionId,
  2. bool isOn
)

Called when the user toggles the camera (video calls).

sessionId — the active call session ID. isOntrue if the camera is now on, false if off.

Default: delegates to NotificationVoipPlugin.toggleCamera.

Implementation

Future<void> onCameraToggled(String sessionId, bool isOn) async {
  await NotificationVoipPlugin.toggleCamera(sessionId);
}