Android.Media.MediaScannerConnection.ScanFile Method
Requests the media scanner to scan a file.

Syntax

[Android.Runtime.Register("scanFile", "(Ljava/lang/String;Ljava/lang/String;)V", "GetScanFile_Ljava_lang_String_Ljava_lang_String_Handler")]
public virtual void ScanFile (string path, string mimeType)

Parameters

path
the path to the file to be scanned.
mimeType
an optional mimeType for the file. If mimeType is null, then the mimeType will be inferred from the file extension.

Remarks

Requirements

Namespace: Android.Media
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1