public static interface MediaScannerConnection.MediaScannerConnectionClient
implements MediaScannerConnection.OnScanCompletedListener
android.media.MediaScannerConnection.MediaScannerConnectionClient |
用于在与MediaScanner服务建立连接并完成文件扫描时通知MediaScannerConnection客户端的界面。
Public methods |
|
---|---|
abstract void |
onMediaScannerConnected() 当与MediaScanner服务的连接已建立时,通知客户端。 |
abstract void |
onScanCompleted(String path, Uri uri) 当媒体扫描器完成扫描文件时被调用以通知客户端。 |
Inherited methods |
|
---|---|
From interface android.media.MediaScannerConnection.OnScanCompletedListener
|
void onMediaScannerConnected ()
当与MediaScanner服务的连接已建立时,通知客户端。
void onScanCompleted (String path, Uri uri)
当媒体扫描器完成扫描文件时被调用以通知客户端。
Parameters | |
---|---|
path |
String : the path to the file that has been scanned. |
uri |
Uri : the Uri for the file if the scanning operation succeeded and the file was added to the media database, or null if scanning failed. |