Share via


MediaScannerConnection.Connect Method

Definition

Initiates a connection to the media scanner service.

[Android.Runtime.Register("connect", "()V", "GetConnectHandler")]
public virtual void Connect ();
[<Android.Runtime.Register("connect", "()V", "GetConnectHandler")>]
abstract member Connect : unit -> unit
override this.Connect : unit -> unit
Attributes

Remarks

Initiates a connection to the media scanner service. MediaScannerConnectionClient#onMediaScannerConnected() will be called when the connection is established.

Java documentation for android.media.MediaScannerConnection.connect().

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.

Applies to