getMedia method

Future<List<XFile>> getMedia({
  1. required MediaOptions options,
})

Returns a List<XFile> with the images and/or videos that were picked. The images and videos come from the gallery.

Where iOS supports HEIC images, Android 8 and below doesn't. Android 9 and above only support HEIC images if used in addition to a size modification, of which the usage is explained below.

In Android, the MainActivity can be destroyed for various reasons. If that happens, the result will be lost in this call. You can then call getLostData when your app relaunches to retrieve the lost data.

If no images or videos were picked, the return value is an empty list.

Implementation

Future<List<XFile>> getMedia({
  required MediaOptions options,
}) {
  throw UnimplementedError('getMedia() has not been implemented.');
}