Skip to content

Most visited

Recently visited

navigation
Added in API level 1

MediaScannerConnection.MediaScannerConnectionClient

public static interface MediaScannerConnection.MediaScannerConnectionClient
implements MediaScannerConnection.OnScanCompletedListener

android.media.MediaScannerConnection.MediaScannerConnectionClient


An interface for notifying clients of MediaScannerConnection when a connection to the MediaScanner service has been established and when the scanning of a file has completed.

Summary

Public methods

abstract void onMediaScannerConnected()

Called to notify the client when a connection to the MediaScanner service has been established.

abstract void onScanCompleted(String path, Uri uri)

Called to notify the client when the media scanner has finished scanning a file.

Inherited methods

From interface android.media.MediaScannerConnection.OnScanCompletedListener

Public methods

onMediaScannerConnected

Added in API level 1
void onMediaScannerConnected ()

Called to notify the client when a connection to the MediaScanner service has been established.

onScanCompleted

Added in API level 1
void onScanCompleted (String path, 
                Uri uri)

Called to notify the client when the media scanner has finished scanning a file.

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.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.