setSynchronizedOutput method

Future<void> setSynchronizedOutput({
  1. required bool enabled,
})

Pairs each video frame with the depth map captured WITH it and streams the pairs on synchronizedFrames — vision-camera's CameraOutputSynchronizer. Turns depth output on as needed, so it throws the same device/depth-unsupported / session/busy errors as setDepthOutput. The plain frameStream and depthFrames keep working alongside.

Implementation

Future<void> setSynchronizedOutput({required bool enabled}) async {
  _requireInitialized();
  try {
    await _native.setSynchronizedOutput(_textureId!, enabled ? 1 : 0);
  } catch (e) {
    throw _typedNativeError(e);
  }
}