setCaptureModeEnabled method

Future<void> setCaptureModeEnabled(
  1. bool enabled
)

Implementation

Future<void> setCaptureModeEnabled(bool enabled) async {
  if (!isDigiaDebugBuild() && enabled) return;
  if (!enabled) _captureSession.cancelActiveTraversal();
  captureModeNotifier.value = enabled;
  await _componentRegistry.setEnabled(enabled);
  if (enabled) await DigiaDebugOverlayController.instance.setVisible(true);
}