/**@class android.media.MediaScannerConnection implements android.content.ServiceConnection @extends java.lang.Object MediaScannerConnection provides a way for applications to pass a newly created or downloaded media file to the media scanner service. The media scanner service will read metadata from the file and add the file to the media content provider. The MediaScannerConnectionClient provides an interface for the media scanner service to return the Uri for a newly scanned file to the client of the MediaScannerConnection class. */ var MediaScannerConnection = { /**Initiates a connection to the media scanner service. {@link android.media.MediaScannerConnection.MediaScannerConnectionClient#onMediaScannerConnected()} will be called when the connection is established. */ connect : function( ) {}, /**Releases the connection to the media scanner service. */ disconnect : function( ) {}, /**Returns whether we are connected to the media scanner service @return {Boolean} true if we are connected, false otherwise */ isConnected : function( ) {}, /**Requests the media scanner to scan a file. Success or failure of the scanning operation cannot be determined until {@link android.media.MediaScannerConnection.MediaScannerConnectionClient#onScanCompleted(String, Uri)} is called. @param {String} path the path to the file to be scanned. @param {String} mimeType an optional mimeType for the file. If mimeType is null, then the mimeType will be inferred from the file extension. */ scanFile : function( ) {}, /**Convenience for constructing a {@link android.media.MediaScannerConnection}, calling {@link #connect} on it, and calling {@link #scanFile} with the given <var>path</var> and <var>mimeType</var> when the connection is established. @param {Object {Context}} context The caller's Context, required for establishing a connection to the media scanner service. Success or failure of the scanning operation cannot be determined until {@link MediaScannerConnectionClient#onScanCompleted(String, Uri)} is called. @param {Object {java.lang.String[]}} paths Array of paths to be scanned. @param {Object {java.lang.String[]}} mimeTypes Optional array of MIME types for each path. If mimeType is null, then the mimeType will be inferred from the file extension. @param {Object {MediaScannerConnection.OnScanCompletedListener}} callback Optional callback through which you can receive the scanned URI and MIME type; If null, the file will be scanned but you will not get a result back. @see #scanFile(String, String) */ scanFile : function( ) {}, /**Part of the ServiceConnection interface. Do not call. */ onServiceConnected : function( ) {}, /**Part of the ServiceConnection interface. Do not call. */ onServiceDisconnected : function( ) {}, };