@@ -64,19 +64,21 @@ abstract class CameraPlatform extends PlatformInterface {
64
64
/// [imageFormatGroup] is used to specify the image formatting used.
65
65
/// On Android this defaults to ImageFormat.YUV_420_888 and applies only to the imageStream.
66
66
/// On iOS this defaults to kCVPixelFormatType_32BGRA.
67
+ /// On Web this parameter is currently not supported.
67
68
Future <void > initializeCamera (
68
69
int cameraId, {
69
70
ImageFormatGroup imageFormatGroup = ImageFormatGroup .unknown,
70
71
}) {
71
72
throw UnimplementedError ('initializeCamera() is not implemented.' );
72
73
}
73
74
74
- /// The camera has been initialized
75
+ /// The camera has been initialized.
75
76
Stream <CameraInitializedEvent > onCameraInitialized (int cameraId) {
76
77
throw UnimplementedError ('onCameraInitialized() is not implemented.' );
77
78
}
78
79
79
- /// The camera's resolution has changed
80
+ /// The camera's resolution has changed.
81
+ /// On Web this returns an empty stream.
80
82
Stream <CameraResolutionChangedEvent > onCameraResolutionChanged (int cameraId) {
81
83
throw UnimplementedError ('onResolutionChanged() is not implemented.' );
82
84
}
@@ -91,7 +93,7 @@ abstract class CameraPlatform extends PlatformInterface {
91
93
throw UnimplementedError ('onCameraError() is not implemented.' );
92
94
}
93
95
94
- /// The camera finished recording a video
96
+ /// The camera finished recording a video.
95
97
Stream <VideoRecordedEvent > onVideoRecordedEvent (int cameraId) {
96
98
throw UnimplementedError ('onCameraTimeLimitReached() is not implemented.' );
97
99
}
@@ -153,6 +155,7 @@ abstract class CameraPlatform extends PlatformInterface {
153
155
}
154
156
155
157
/// Sets the flash mode for the selected camera.
158
+ /// On Web [FlashMode.auto] corresponds to [FlashMode.always] .
156
159
Future <void > setFlashMode (int cameraId, FlashMode mode) {
157
160
throw UnimplementedError ('setFlashMode() is not implemented.' );
158
161
}
@@ -227,8 +230,8 @@ abstract class CameraPlatform extends PlatformInterface {
227
230
228
231
/// Set the zoom level for the selected camera.
229
232
///
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`
232
235
/// when an illegal zoom level is supplied.
233
236
Future <void > setZoomLevel (int cameraId, double zoom) {
234
237
throw UnimplementedError ('setZoomLevel() is not implemented.' );
0 commit comments