Package org.robolectric.shadows
Class ShadowMediaScannerConnection
java.lang.Object
org.robolectric.shadows.ShadowMediaScannerConnection
@Implements(android.media.MediaScannerConnection.class) public class ShadowMediaScannerConnection extends Object
Shadow of
MediaScannerConnection
-
Constructor Summary
Constructors Constructor Description ShadowMediaScannerConnection()
-
Method Summary
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)
-
Constructor Details
-
ShadowMediaScannerConnection
public ShadowMediaScannerConnection()
-
-
Method Details
-
scanFile
@Implementation protected static void scanFile(Context context, String[] paths, String[] mimeTypes, MediaScannerConnection.OnScanCompletedListener callback) -
reset
-
getSavedPaths
Return the set of file paths scanned by scanFile() -
getSavedMimeTypes
Return the set of file mimeTypes scanned by scanFile()
-