Partager via


MediaStore.Downloads.GetContentUri Method

Definition

Overloads

GetContentUri(String)

Get the content:// style URI for the downloads table on the given volume.

GetContentUri(String, Int64)

Get the content:// style URI for a single row in the downloads table on the given volume.

GetContentUri(String)

Get the content:// style URI for the downloads table on the given volume.

[Android.Runtime.Register("getContentUri", "(Ljava/lang/String;)Landroid/net/Uri;", "", ApiSince=29)]
public static Android.Net.Uri GetContentUri (string volumeName);
[<Android.Runtime.Register("getContentUri", "(Ljava/lang/String;)Landroid/net/Uri;", "", ApiSince=29)>]
static member GetContentUri : string -> Android.Net.Uri

Parameters

volumeName
String

the name of the volume to get the URI for

Returns

Uri

the URI to the image media table on the given volume

Attributes

Remarks

Get the content:// style URI for the downloads table on the given volume.

Java documentation for android.provider.MediaStore.Downloads.getContentUri(java.lang.String).

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

GetContentUri(String, Int64)

Get the content:// style URI for a single row in the downloads table on the given volume.

[Android.Runtime.Register("getContentUri", "(Ljava/lang/String;J)Landroid/net/Uri;", "", ApiSince=30)]
public static Android.Net.Uri GetContentUri (string volumeName, long id);
[<Android.Runtime.Register("getContentUri", "(Ljava/lang/String;J)Landroid/net/Uri;", "", ApiSince=30)>]
static member GetContentUri : string * int64 -> Android.Net.Uri

Parameters

volumeName
String

the name of the volume to get the URI for

id
Int64

the download to get the URI for

Returns

Uri

the URI to the downloads table on the given volume

Attributes

Remarks

Get the content:// style URI for a single row in the downloads table on the given volume.

Java documentation for android.provider.MediaStore.Downloads.getContentUri(java.lang.String, long).

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