MediaScannerConnection.IMediaScannerConnectionClient Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |
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 |
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 |
SetJniManagedPeerState(JniManagedPeerStates) | (Inherited from IJavaPeerable) |
SetPeerReference(JniObjectReference) |
Set the value returned by |
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) |