MediaScannerConnection.IMediaScannerConnectionClient MediaScannerConnection.IMediaScannerConnectionClient Interface

Definition

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.

[Android.Runtime.Register("android/media/MediaScannerConnection$MediaScannerConnectionClient", "", "Android.Media.MediaScannerConnection/IMediaScannerConnectionClientInvoker", ApiSince=1)]
public interface MediaScannerConnection.IMediaScannerConnectionClient : Android.Media.MediaScannerConnection.IOnScanCompletedListener, IDisposable
type MediaScannerConnection.IMediaScannerConnectionClient = interface
    interface MediaScannerConnection.IOnScanCompletedListener
    interface IJavaObject
    interface IDisposable
Attributes
Implements

Remarks

Android platform documentation

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Methods

Connect() Connect()

Initiates a connection to the media scanner service.

(Inherited from MediaScannerConnection)
Disconnect() Disconnect()

Releases the connection to the media scanner service.

(Inherited from MediaScannerConnection)
OnMediaScannerConnected() OnMediaScannerConnected()

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

OnScanCompleted(String, Uri) OnScanCompleted(String, Uri)

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

OnServiceConnected(ComponentName, IBinder) OnServiceConnected(ComponentName, IBinder)

Part of the ServiceConnection interface.

(Inherited from MediaScannerConnection)
OnServiceDisconnected(ComponentName) OnServiceDisconnected(ComponentName)

Part of the ServiceConnection interface.

(Inherited from MediaScannerConnection)
ScanFile(String, String) ScanFile(String, String)

Requests the media scanner to scan a file.

(Inherited from MediaScannerConnection)

Properties

Handle Handle

Gets the JNI value of the underlying Android object.

(Inherited from IJavaObject)
IsConnected IsConnected

Returns whether we are connected to the media scanner service

(Inherited from MediaScannerConnection)
JniPeerMembers JniPeerMembers Inherited from MediaScannerConnection
ThresholdClass ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from MediaScannerConnection)
ThresholdType ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from MediaScannerConnection)

Extension Methods

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable) GetJniTypeName(IJavaPeerable)

Applies to