DownloadManager.Request.AllowScanningByMediaScanner 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.
If the file to be downloaded is to be scanned by MediaScanner, this method
should be called before DownloadManager#enqueue(Request)
is called.
[Android.Runtime.Register("allowScanningByMediaScanner", "()V", "GetAllowScanningByMediaScannerHandler")]
public virtual void AllowScanningByMediaScanner ();
[<Android.Runtime.Register("allowScanningByMediaScanner", "()V", "GetAllowScanningByMediaScannerHandler")>]
abstract member AllowScanningByMediaScanner : unit -> unit
override this.AllowScanningByMediaScanner : unit -> unit
- Attributes
Remarks
If the file to be downloaded is to be scanned by MediaScanner, this method should be called before DownloadManager#enqueue(Request)
is called.
This member is deprecated. Starting in Q, this value is ignored. Files downloaded to directories owned by applications (e.g. Context#getExternalFilesDir(String)
) will not be scanned by MediaScanner and the rest will be scanned.
Java documentation for android.app.DownloadManager.Request.allowScanningByMediaScanner()
.
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.