selectDocumentForWrite static method

Future<String?> selectDocumentForWrite([
  1. String? title,
  2. String? type,
  3. List<String>? extraTypes
])

Displays the native file dialog to select a file in write 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?> selectDocumentForWrite([
  String? title,
  String? type,
  List<String>? extraTypes,
]) async {
  try {
    await init();
    return _platform.ffmpegKitConfigSelectDocumentForWrite(
      title,
      type,
      extraTypes,
    );
  } on PlatformException catch (e, stack) {
    debugPrint("Plugin selectDocumentForWrite error: ${e.message}");
    return Future.error("selectDocumentForWrite failed.", stack);
  }
}