scanLibrary static method

Future<void> scanLibrary(
  1. List<String> folders, {
  2. bool replace = true,
  3. void onProgress(
    1. int scanned,
    2. int total
    )?,
})

Scans folders for audio and indexes their tags (not on web). Android: permission add music. await UMedia.scanLibrary(["/storage/emulated/0/Music"])

Implementation

static Future<void> scanLibrary(List<String> folders, {bool replace = true, void Function(int scanned, int total)? onProgress}) =>
    UMediaLibrary.instance.scan(folders, replace: replace, onProgress: onProgress);