Compartilhar via


MediaScannerConnection.IMediaScannerConnectionClient.OnScanCompleted Method

Definition

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

[Android.Runtime.Register("onScanCompleted", "(Ljava/lang/String;Landroid/net/Uri;)V", "GetOnScanCompleted_Ljava_lang_String_Landroid_net_Uri_Handler:Android.Media.MediaScannerConnection/IMediaScannerConnectionClientInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OnScanCompleted (string? path, Android.Net.Uri? uri);
[<Android.Runtime.Register("onScanCompleted", "(Ljava/lang/String;Landroid/net/Uri;)V", "GetOnScanCompleted_Ljava_lang_String_Landroid_net_Uri_Handler:Android.Media.MediaScannerConnection/IMediaScannerConnectionClientInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnScanCompleted : string * Android.Net.Uri -> unit

Parameters

path
String

the path to the file that has been scanned.

uri
Uri

the Uri for the file if the scanning operation succeeded and the file was added to the media database, or null if scanning failed.

Implements

Attributes

Remarks

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