Most visited

Recently visited

Added in API level 1

MediaScannerConnection.MediaScannerConnectionClient

public static interface MediaScannerConnection.MediaScannerConnectionClient
implements MediaScannerConnection.OnScanCompletedListener

android.media.MediaScannerConnection.MediaScannerConnectionClient


用于在与MediaScanner服务建立连接并完成文件扫描时通知MediaScannerConnection客户端的界面。

Summary

Public methods

abstract void onMediaScannerConnected()

当与MediaScanner服务的连接已建立时,通知客户端。

abstract void onScanCompleted(String path, Uri uri)

当媒体扫描器完成扫描文件时被调用以通知客户端。

Inherited methods

From interface android.media.MediaScannerConnection.OnScanCompletedListener

Public methods

onMediaScannerConnected

Added in API level 1
void onMediaScannerConnected ()

当与MediaScanner服务的连接已建立时,通知客户端。

onScanCompleted

Added in API level 1
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.

Hooray!