MediaScannerConnection.IOnScanCompletedListener.OnScanCompleted Method
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.
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/IOnScanCompletedListenerInvoker, 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/IOnScanCompletedListenerInvoker, 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.
- Attributes
Remarks
Called to notify the client when the media scanner has finished scanning a file.
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.