Package org.robolectric.shadows
Class ShadowMediaScannerConnection
- java.lang.Object
-
- org.robolectric.shadows.ShadowMediaScannerConnection
-
@Implements(android.media.MediaScannerConnection.class) public class ShadowMediaScannerConnection extends Object
Shadow ofMediaScannerConnection
-
-
Constructor Summary
Constructors Constructor Description ShadowMediaScannerConnection()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Set<String>
getSavedMimeTypes()
Return the set of file mimeTypes scanned by scanFile()static Set<String>
getSavedPaths()
Return the set of file paths scanned by scanFile()static void
reset()
protected static void
scanFile(Context context, String[] paths, String[] mimeTypes, MediaScannerConnection.OnScanCompletedListener callback)
-
-
-
Method Detail
-
scanFile
@Implementation protected static void scanFile(Context context, String[] paths, String[] mimeTypes, MediaScannerConnection.OnScanCompletedListener callback)
-
reset
@Resetter public static void reset()
-
getSavedPaths
public static Set<String> getSavedPaths()
Return the set of file paths scanned by scanFile()
-
-