@@ -68,9 +68,7 @@ abstract class CameraPlatform extends PlatformInterface {
68
68
}
69
69
70
70
/// 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) {
74
72
throw UnimplementedError ('takePicture() is not implemented.' );
75
73
}
76
74
@@ -79,21 +77,16 @@ abstract class CameraPlatform extends PlatformInterface {
79
77
throw UnimplementedError ('prepareForVideoRecording() is not implemented.' );
80
78
}
81
79
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.
86
81
///
87
82
/// 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.
90
83
/// 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) {
92
85
throw UnimplementedError ('startVideoRecording() is not implemented.' );
93
86
}
94
87
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) {
97
90
throw UnimplementedError ('stopVideoRecording() is not implemented.' );
98
91
}
99
92
0 commit comments