setDescription abstract method

Future<({int previewRotationQuarterTurns, Size previewSize})> setDescription(
  1. int handle,
  2. String cameraId
)

Swap to a different camera mid-session. Resets the lock and clears any pending recording. Returns the new preview size and rotation; the size may again be Size.zero initially on Android, with a follow-up XCameraPreviewSizeChanged event.

Implementation

Future<({Size previewSize, int previewRotationQuarterTurns})> setDescription(
  int handle,
  String cameraId,
);