activeCamera method

Future<String?> activeCamera()

Returns the currently active camera facing: "front", "back", or null.

Implementation

Future<String?> activeCamera() async {
  try {
    return await _coordinator.hostApi.activeCamera();
  } on PlatformException catch (e) {
    throw ChimeDeviceException('Failed to get active camera', e.message);
  }
}