Skip to content

Commit 96bccd4

Browse files
committed
Updated platform interface
1 parent 8e94057 commit 96bccd4

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

packages/camera/camera_platform_interface/lib/src/platform_interface/camera_platform.dart

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,7 @@ abstract class CameraPlatform extends PlatformInterface {
6868
}
6969

7070
/// Captures an image and returns the file where it was saved.
71-
/// If no [file] parameter is provided, the file returned will be in a
72-
/// temporary location.
73-
Future<XFile> takePicture(int cameraId, {XFile file}) {
71+
Future<XFile> takePicture(int cameraId) {
7472
throw UnimplementedError('takePicture() is not implemented.');
7573
}
7674

@@ -79,21 +77,16 @@ abstract class CameraPlatform extends PlatformInterface {
7977
throw UnimplementedError('prepareForVideoRecording() is not implemented.');
8078
}
8179

82-
/// Starts a video recording.
83-
///
84-
/// If no [file] parameter is provided, the recording will be saved to a new
85-
/// file in a temporary location.
80+
/// Starts a video recording and returns the file where it will be saved.
8681
///
8782
/// The file is written on the flight as the video is being recorded.
88-
/// If a file already exists at the path for the provided file instance,
89-
/// an error will be thrown.
9083
/// The file can be read as soon as [stopVideoRecording] returns it.
91-
Future<XFile> startVideoRecording(int cameraId, {XFile file}) {
84+
Future<XFile> startVideoRecording(int cameraId) {
9285
throw UnimplementedError('startVideoRecording() is not implemented.');
9386
}
9487

95-
/// Stops the video recording and returns the file where it was saved.
96-
Future<XFile> stopVideoRecording(int cameraId) {
88+
/// Stops the video recording.
89+
Future<void> stopVideoRecording(int cameraId) {
9790
throw UnimplementedError('stopVideoRecording() is not implemented.');
9891
}
9992

0 commit comments

Comments
 (0)