File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
packages/camera/camera_platform_interface/lib/src/platform_interface Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -67,8 +67,9 @@ abstract class CameraPlatform extends PlatformInterface {
67
67
throw UnimplementedError ('onCameraError() is not implemented.' );
68
68
}
69
69
70
- /// Captures an image and returns the file where it was saved
71
- Future <XFile > takePicture (int cameraId) {
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 temporary location.
72
+ Future <XFile > takePicture (int cameraId, { XFile file }) {
72
73
throw UnimplementedError ('takePicture() is not implemented.' );
73
74
}
74
75
@@ -79,10 +80,12 @@ abstract class CameraPlatform extends PlatformInterface {
79
80
80
81
/// Starts a video recording
81
82
///
83
+ /// If no [file] parameter is provided, the recording will be saved to a new file in a temporary location.
84
+ ///
82
85
/// The file is written on the flight as the video is being recorded.
83
- /// If a file already exists at the provided path an error will be thrown.
86
+ /// If a file already exists at the path for the provided file instance, an error will be thrown.
84
87
/// The file can be read as soon as [stopVideoRecording] returns it.
85
- Future <void > startVideoRecording (int cameraId) {
88
+ Future <XFile > startVideoRecording (int cameraId, { XFile file } ) {
86
89
throw UnimplementedError ('startVideoRecording() is not implemented.' );
87
90
}
88
91
You can’t perform that action at this time.
0 commit comments