FileDocCategorySizeDatePackage
IMediaScannerService.javaAPI DocAndroid 5.1 API5378Sat Mar 14 05:48:10 GMT 2015android.media

IMediaScannerService

public interface IMediaScannerService implements android.os.IInterface
{@hide}

Fields Summary
Constructors Summary
Methods Summary
public voidrequestScanFile(java.lang.String path, java.lang.String mimeType, android.media.IMediaScannerListener listener)
Requests the media scanner to scan a file.

param
path the path to the file to be scanned.
param
mimeType an optional mimeType for the file. If mimeType is null, then the mimeType will be inferred from the file extension.
param
listener an optional IMediaScannerListener. If specified, the caller will be notified when scanning is complete via the listener.

public voidscanFile(java.lang.String path, java.lang.String mimeType)
Older API, left in for backward compatibility. Requests the media scanner to scan a file.

param
path the path to the file to be scanned.
param
mimeType an optional mimeType for the file. If mimeType is null, then the mimeType will be inferred from the file extension.