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
-
Method Summary
Modifier and TypeMethodDescriptionReturn the set of file mimeTypes scanned by scanFile()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()
-