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")]
public interface MediaScannerConnection.IMediaScannerConnectionClient : Android.Media.MediaScannerConnection.IOnScanCompletedListener, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("android/media/MediaScannerConnection$MediaScannerConnectionClient", "", "Android.Media.MediaScannerConnection/IMediaScannerConnectionClientInvoker")>]
type MediaScannerConnection.IMediaScannerConnectionClient = interface
    interface MediaScannerConnection.IOnScanCompletedListener
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Attributes
Implements

Remarks

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.

Java documentation for android.media.MediaScannerConnection.MediaScannerConnectionClient.

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.

Properties

Handle

Gets the JNI value of the underlying Android object.

(Inherited from IJavaObject)
IsConnected

Returns whether we are connected to the media scanner service

(Inherited from MediaScannerConnection)
JniIdentityHashCode

Returns the value of java.lang.System.identityHashCode() for the wrapped instance.

(Inherited from IJavaPeerable)
JniManagedPeerState

State of the managed peer.

(Inherited from IJavaPeerable)
JniPeerMembers

Member access and invocation support.

(Inherited from IJavaPeerable)
PeerReference

Returns a JniObjectReference of the wrapped Java object instance.

(Inherited from IJavaPeerable)
ThresholdClass

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

(Inherited from MediaScannerConnection)
ThresholdType

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

(Inherited from MediaScannerConnection)

Methods

Connect()

Initiates a connection to the media scanner service.

(Inherited from MediaScannerConnection)
Disconnect()

Releases the connection to the media scanner service.

(Inherited from MediaScannerConnection)
Disposed()

Called when the instance has been disposed.

(Inherited from IJavaPeerable)
DisposeUnlessReferenced()

If there are no outstanding references to this instance, then calls Dispose(); otherwise, does nothing.

(Inherited from IJavaPeerable)
Finalized()

Called when the instance has been finalized.

(Inherited from IJavaPeerable)
OnMediaScannerConnected()

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

OnScanCompleted(String, Uri)

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

OnServiceConnected(ComponentName, IBinder)

Part of the ServiceConnection interface.

(Inherited from MediaScannerConnection)
OnServiceDisconnected(ComponentName)

Part of the ServiceConnection interface.

(Inherited from MediaScannerConnection)
ScanFile(String, String)

Requests the media scanner to scan a file.

(Inherited from MediaScannerConnection)
SetJniIdentityHashCode(Int32)

Set the value returned by JniIdentityHashCode.

(Inherited from IJavaPeerable)
SetJniManagedPeerState(JniManagedPeerStates) (Inherited from IJavaPeerable)
SetPeerReference(JniObjectReference)

Set the value returned by PeerReference.

(Inherited from IJavaPeerable)
UnregisterFromRuntime()

Unregister this instance so that the runtime will not return it from future Java.Interop.JniRuntime+JniValueManager.PeekValue invocations.

(Inherited from IJavaPeerable)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to