Added in API level 8

OnScanCompletedListener

interface OnScanCompletedListener
android.media.MediaScannerConnection.OnScanCompletedListener

Interface for notifying clients of the result of scanning a requested media file.

Summary

Public methods
abstract Unit
onScanCompleted(path: String!, uri: Uri!)

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

Public methods

onScanCompleted

Added in API level 8
abstract fun onScanCompleted(
    path: String!,
    uri: Uri!
): Unit

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.