Skip to content

A Flutter plugin (Android) to fetch audio files from device.

License

Notifications You must be signed in to change notification settings

redblood53/fetchmedia

Repository files navigation

FetchMedia

A Flutter plugin (Android) to fetch audio files from device.

Usage

Example

To use this plugin :

  dependencies:
    flutter:
      sdk: flutter
    fetchmedia:
  • instantiate Fetchmedia instance
//...
List<LinkedHashMap> mediaList;
    try {
      // make sure You asked For permission
      final bool permission = await requestPermissionIfNotGiven();
      if (permission) {
        mediaList = await new Fetchmedia().allAudioFiles();
      }

      print("palteform ${mediaList}");
    } on PlatformException {
      print("error on fetching");
    }
//...

About

A Flutter plugin (Android) to fetch audio files from device.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published