selectDocumentForRead static method

Future<String?> selectDocumentForRead([
  1. String? type = null,
  2. List<String>? extraTypes = null
])

Displays the native file dialog to select a file in read mode. If a file is selected then this method returns the Structured Access Framework Uri ("content:…") for that file.

Note that this method is Android only. It will fail if called on other platforms.

Implementation

static Future<String?> selectDocumentForRead(
    [String? type = null, List<String>? extraTypes = null]) async {
  try {
    await init();
    return _platform.ffmpegKitConfigSelectDocumentForRead(type, extraTypes);
  } on PlatformException catch (e, stack) {
    print("Plugin selectDocumentForRead error: ${e.message}");
    return Future.error("selectDocumentForRead failed.", stack);
  }
}