setScreenSettings method
set Screen Settings Only supports ios
Implementation
Future<void> setScreenSettings(int width, int height) async {
if (!value.isInitialized! || _isDisposed) {
throw CameraException(
'Uninitialized CameraController',
'setScreenSettings was called on uninitialized CameraController',
);
}
if (!Platform.isIOS) {
throw CameraException(
'Unsupported platforms.',
'setScreenSettings Only supports Ios.',
);
}
try {
await _channel.invokeMethod<void>(
'setScreenSettings',
<String, dynamic>{"width": width, "height": height},
);
} on PlatformException catch (e) {
throw CameraException(e.code, e.message);
}
}