DownloadManager.Request.SetDestinationInExternalPublicDir Method

Definition

Set the local destination for the downloaded file to a path within the public external storage directory (as returned by GetExternalStoragePublicDirectory(String)).

[Android.Runtime.Register("setDestinationInExternalPublicDir", "(Ljava/lang/String;Ljava/lang/String;)Landroid/app/DownloadManager$Request;", "GetSetDestinationInExternalPublicDir_Ljava_lang_String_Ljava_lang_String_Handler")]
public virtual Android.App.DownloadManager.Request? SetDestinationInExternalPublicDir (string? dirType, string? subPath);
[<Android.Runtime.Register("setDestinationInExternalPublicDir", "(Ljava/lang/String;Ljava/lang/String;)Landroid/app/DownloadManager$Request;", "GetSetDestinationInExternalPublicDir_Ljava_lang_String_Ljava_lang_String_Handler")>]
abstract member SetDestinationInExternalPublicDir : string * string -> Android.App.DownloadManager.Request
override this.SetDestinationInExternalPublicDir : string * string -> Android.App.DownloadManager.Request

Parameters

dirType
String

the directory type to pass to GetExternalStoragePublicDirectory(String)

subPath
String

the path within the external directory, including the destination filename

Returns

Attributes

Exceptions

If the external storage directory cannot be found or created.

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