getCameraResolutionState method
Get current camera resolution state
Implementation
@override
Future<Map<String, dynamic>> getCameraResolutionState() async {
try {
if (kDebugMode) {
debugPrint('QuickQR Scanner: Getting camera resolution state');
}
final result = await methodChannel.invokeMethod<Map<Object?, Object?>>('getCameraResolutionState');
final resolutionState = Map<String, dynamic>.from(result ?? {});
if (kDebugMode) {
debugPrint('QuickQR Scanner: Camera resolution state - $resolutionState');
}
return resolutionState;
} on PlatformException catch (e) {
throw _handlePlatformException(e, 'getCameraResolutionState');
} catch (e) {
throw ScannerException(
ScannerErrorCode.internalError,
'Failed to get camera resolution state: $e',
);
}
}