Build 1.0_r1(from source)

android.media
Interface IMediaScannerService

All Superinterfaces:
IInterface
All Known Implementing Classes:
IMediaScannerService.Stub

public interface IMediaScannerService
extends IInterface


Nested Class Summary
static class IMediaScannerService.Stub
          Local-side IPC implementation stub class.
 
Method Summary
 void requestScanFile(String path, String mimeType, IMediaScannerListener listener)
          Requests the media scanner to scan a file.
 void scanFile(String path, String mimeType)
          Older API, left in for backward compatibility.
 
Methods inherited from interface android.os.IInterface
asBinder
 

Method Detail

requestScanFile

void requestScanFile(String path,
                     String mimeType,
                     IMediaScannerListener listener)
                     throws RemoteException
Requests the media scanner to scan a file.

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

scanFile

void scanFile(String path,
              String mimeType)
              throws RemoteException
Older API, left in for backward compatibility. Requests the media scanner to scan a file.

Parameters:
path - the path to the file to be scanned.
mimeType - an optional mimeType for the file. If mimeType is null, then the mimeType will be inferred from the file extension.
Throws:
RemoteException

Build 1.0_r1(from source)

Please submit a feedback, bug or feature