Share via


ClipData.NewRawUri Method

Definition

Overloads

NewRawUri(ICharSequence, Uri)

Create a new ClipData holding an URI with MIME type ClipDescription#MIMETYPE_TEXT_URILIST.

NewRawUri(String, Uri)

Create a new ClipData holding an URI with MIME type ClipDescription#MIMETYPE_TEXT_URILIST.

NewRawUri(ICharSequence, Uri)

Create a new ClipData holding an URI with MIME type ClipDescription#MIMETYPE_TEXT_URILIST.

[Android.Runtime.Register("newRawUri", "(Ljava/lang/CharSequence;Landroid/net/Uri;)Landroid/content/ClipData;", "")]
public static Android.Content.ClipData? NewRawUri (Java.Lang.ICharSequence? label, Android.Net.Uri? uri);
[<Android.Runtime.Register("newRawUri", "(Ljava/lang/CharSequence;Landroid/net/Uri;)Landroid/content/ClipData;", "")>]
static member NewRawUri : Java.Lang.ICharSequence * Android.Net.Uri -> Android.Content.ClipData

Parameters

label
ICharSequence

User-visible label for the clip data.

uri
Uri

The URI in the clip.

Returns

Returns a new ClipData containing the specified data.

Attributes

Remarks

Create a new ClipData holding an URI with MIME type ClipDescription#MIMETYPE_TEXT_URILIST. Unlike #newUri(ContentResolver, CharSequence, Uri), nothing is inferred about the URI -- if it is a content: URI holding a bitmap, the reported type will still be uri-list. Use this with care!

Java documentation for android.content.ClipData.newRawUri(java.lang.CharSequence, android.net.Uri).

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

NewRawUri(String, Uri)

Create a new ClipData holding an URI with MIME type ClipDescription#MIMETYPE_TEXT_URILIST.

public static Android.Content.ClipData? NewRawUri (string? label, Android.Net.Uri? uri);
static member NewRawUri : string * Android.Net.Uri -> Android.Content.ClipData

Parameters

label
String

User-visible label for the clip data.

uri
Uri

The URI in the clip.

Returns

Returns a new ClipData containing the specified data.

Remarks

Create a new ClipData holding an URI with MIME type ClipDescription#MIMETYPE_TEXT_URILIST. Unlike #newUri(ContentResolver, CharSequence, Uri), nothing is inferred about the URI -- if it is a content: URI holding a bitmap, the reported type will still be uri-list. Use this with care!

Java documentation for android.content.ClipData.newRawUri(java.lang.CharSequence, android.net.Uri).

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