getSupportedVideoStabilizationModes method
Gets a list of video stabilization modes that are supported for the selected camera.
VideoStabilizationMode.off will always be listed.
Implementation
Future<Iterable<VideoStabilizationMode>>
getSupportedVideoStabilizationModes() async {
_throwIfNotInitialized('getSupportedVideoStabilizationModes');
try {
final modes = <VideoStabilizationMode>{
VideoStabilizationMode.off,
...await CameraPlatform.instance.getSupportedVideoStabilizationModes(
_cameraId,
),
};
return modes;
} on PlatformException catch (e) {
throw CameraException(e.code, e.message);
}
}