getAllDocuments method

  1. @override
Future<List<String>> getAllDocuments()
override

Retrieves paths of all document files on device. Returns List< String> of absolute file paths. Example:

List<String> docs = await MethodChannelMediaManager().getAllDocuments();

Implementation

@override
Future<List<String>> getAllDocuments() async {
  final List<dynamic> result = await methodChannel.invokeMethod(
    'getAllDocuments',
  );
  return result.cast<String>();
}