setMultiCam static method

void setMultiCam({
  1. required bool enabled,
  2. NitroCamera? native,
})

Runs the cameras opened from now on SIMULTANEOUSLY — vision-camera's requiresMultiCam. On iOS they then share one AVCaptureMultiCamSession (without it iOS runs one camera at a time and a second open interrupts the first); pick pairs from getConcurrentCameraIds. Opening a camera that can't join (unsupported pair, or the cameras together exceed the hardware budget) fails like any other open — initialize throws. Depth and hardware detectors are unavailable in multi-cam mode on iOS. Android runs concurrent cameras natively, so this is a no-op there.

Implementation

static void setMultiCam({required bool enabled, NitroCamera? native}) =>
    (native ?? NitroCamera.instance).setMultiCamEnabled(enabled ? 1 : 0);