Skip to content

Commit f934beb

Browse files
Chris YangEgor
authored andcommitted
Revert "update api"
This reverts commit 56d3ca1.
1 parent 29a59cb commit f934beb

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

packages/image_picker/image_picker/lib/image_picker.dart

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,6 @@ class ImagePicker {
9191
/// the front or rear camera should be opened, this function is not guaranteed
9292
/// to work on an Android device.
9393
///
94-
/// Use `forceFullMetaData` to force retrieve the full meta data of the content picked. Defaults to `true`
95-
/// Some platforms require less permissions for getting images/videos without their full metadata,
96-
/// when this flag is false the plugin fetches the image in a way that requires minimal extra permissions
97-
/// from the platform (e.g on iOS the plugin won’t ask for the XXX permission).
98-
/// When this flag is true the plugin tries to get the full image/video metadata which may prompt extra permission requests.
99-
///
10094
/// In Android, the MainActivity can be destroyed for various reasons. If that happens, the result will be lost
10195
/// in this call. You can then call [getLostData] when your app relaunches to retrieve the lost data.
10296
Future<PickedFile> getImage({
@@ -105,7 +99,6 @@ class ImagePicker {
10599
double maxHeight,
106100
int imageQuality,
107101
CameraDevice preferredCameraDevice = CameraDevice.rear,
108-
bool forceFullMetaData = true,
109102
}) {
110103
return platform.pickImage(
111104
source: source,
@@ -160,19 +153,12 @@ class ImagePicker {
160153
/// The `preferredCameraDevice` is ignored when `source` is [ImageSource.gallery]. It is also ignored if the chosen camera is not supported on the device.
161154
/// Defaults to [CameraDevice.rear].
162155
///
163-
/// Use `forceFullMetaData` to force retrieve the full meta data of the content picked. Defaults to `true`
164-
/// Some platforms require less permissions for getting images/videos without their full metadata,
165-
/// when this flag is false the plugin fetches the image in a way that requires minimal extra permissions
166-
/// from the platform (e.g on iOS the plugin won’t ask for the XXX permission).
167-
/// When this flag is true the plugin tries to get the full image/video metadata which may prompt extra permission requests.
168-
///
169156
/// In Android, the MainActivity can be destroyed for various fo reasons. If that happens, the result will be lost
170157
/// in this call. You can then call [getLostData] when your app relaunches to retrieve the lost data.
171158
Future<PickedFile> getVideo({
172159
@required ImageSource source,
173160
CameraDevice preferredCameraDevice = CameraDevice.rear,
174161
Duration maxDuration,
175-
bool forceFullMetaData = true,
176162
}) {
177163
return platform.pickVideo(
178164
source: source,

0 commit comments

Comments
 (0)