You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Copy file name to clipboardexpand all lines: packages/image_picker/image_picker_platform_interface/lib/src/method_channel/method_channel_image_picker.dart
+6
Original file line number
Diff line number
Diff line change
@@ -24,13 +24,15 @@ class MethodChannelImagePicker extends ImagePickerPlatform {
Copy file name to clipboardexpand all lines: packages/image_picker/image_picker_platform_interface/lib/src/platform_interface/image_picker_platform.dart
+12
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,11 @@ abstract class ImagePickerPlatform extends PlatformInterface {
58
58
/// image types such as JPEG. If compression is not supported for the image that is picked,
59
59
/// a warning message will be logged.
60
60
///
61
+
/// `forceFullMetadata` defaults to `true`, so the plugin tries to get the full image metadata which may require
62
+
/// extra permission requests on certain platforms.
63
+
/// If `forceFullMetadata` is set to `false`, the plugin fetches the image in a way that reduces permission requests
64
+
/// from the platform (e.g. on iOS the plugin won’t ask for the `NSPhotoLibraryUsageDescription` permission).
65
+
///
61
66
/// Use `preferredCameraDevice` to specify the camera to use when the `source` is [ImageSource.camera].
62
67
/// The `preferredCameraDevice` is ignored when `source` is [ImageSource.gallery]. It is also ignored if the chosen camera is not supported on the device.
63
68
/// Defaults to [CameraDevice.rear]. Note that Android has no documented parameter for an intent to specify if
@@ -73,6 +78,7 @@ abstract class ImagePickerPlatform extends PlatformInterface {
throwUnimplementedError('pickImage() has not been implemented.');
@@ -164,6 +170,11 @@ abstract class ImagePickerPlatform extends PlatformInterface {
164
170
/// image types such as JPEG. If compression is not supported for the image that is picked,
165
171
/// a warning message will be logged.
166
172
///
173
+
/// `forceFullMetadata` defaults to `true`, so the plugin tries to get the full image metadata which may require
174
+
/// extra permission requests on certain platforms.
175
+
/// If `forceFullMetadata` is set to `false`, the plugin fetches the image in a way that reduces permission requests
176
+
/// from the platform (e.g. on iOS the plugin won’t ask for the `NSPhotoLibraryUsageDescription` permission).
177
+
///
167
178
/// Use `preferredCameraDevice` to specify the camera to use when the `source` is [ImageSource.camera].
168
179
/// The `preferredCameraDevice` is ignored when `source` is [ImageSource.gallery]. It is also ignored if the chosen camera is not supported on the device.
169
180
/// Defaults to [CameraDevice.rear]. Note that Android has no documented parameter for an intent to specify if
@@ -179,6 +190,7 @@ abstract class ImagePickerPlatform extends PlatformInterface {
0 commit comments