@@ -64,19 +64,21 @@ abstract class CameraPlatform extends PlatformInterface {
6464 /// [imageFormatGroup] is used to specify the image formatting used.
6565 /// On Android this defaults to ImageFormat.YUV_420_888 and applies only to the imageStream.
6666 /// On iOS this defaults to kCVPixelFormatType_32BGRA.
67+ /// On Web this parameter is currently not supported.
6768 Future <void > initializeCamera (
6869 int cameraId, {
6970 ImageFormatGroup imageFormatGroup = ImageFormatGroup .unknown,
7071 }) {
7172 throw UnimplementedError ('initializeCamera() is not implemented.' );
7273 }
7374
74- /// The camera has been initialized
75+ /// The camera has been initialized.
7576 Stream <CameraInitializedEvent > onCameraInitialized (int cameraId) {
7677 throw UnimplementedError ('onCameraInitialized() is not implemented.' );
7778 }
7879
79- /// The camera's resolution has changed
80+ /// The camera's resolution has changed.
81+ /// On Web this returns an empty stream.
8082 Stream <CameraResolutionChangedEvent > onCameraResolutionChanged (int cameraId) {
8183 throw UnimplementedError ('onResolutionChanged() is not implemented.' );
8284 }
@@ -91,7 +93,7 @@ abstract class CameraPlatform extends PlatformInterface {
9193 throw UnimplementedError ('onCameraError() is not implemented.' );
9294 }
9395
94- /// The camera finished recording a video
96+ /// The camera finished recording a video.
9597 Stream <VideoRecordedEvent > onVideoRecordedEvent (int cameraId) {
9698 throw UnimplementedError ('onCameraTimeLimitReached() is not implemented.' );
9799 }
@@ -153,6 +155,7 @@ abstract class CameraPlatform extends PlatformInterface {
153155 }
154156
155157 /// Sets the flash mode for the selected camera.
158+ /// On Web [FlashMode.auto] corresponds to [FlashMode.always] .
156159 Future <void > setFlashMode (int cameraId, FlashMode mode) {
157160 throw UnimplementedError ('setFlashMode() is not implemented.' );
158161 }
@@ -227,8 +230,8 @@ abstract class CameraPlatform extends PlatformInterface {
227230
228231 /// Set the zoom level for the selected camera.
229232 ///
230- /// The supplied [zoom] value should be between 1.0 and the maximum supported
231- /// zoom level returned by the `getMaxZoomLevel` . Throws a `CameraException`
233+ /// The supplied [zoom] value should be between the minimum and the maximum supported
234+ /// zoom level returned by `getMinZoomLevel` and `getMaxZoomLevel` . Throws a `CameraException`
232235 /// when an illegal zoom level is supplied.
233236 Future <void > setZoomLevel (int cameraId, double zoom) {
234237 throw UnimplementedError ('setZoomLevel() is not implemented.' );
0 commit comments