Udostępnij za pośrednictwem


ClipData.NewUri Method

Definition

Overloads

NewUri(ContentResolver, ICharSequence, Uri)

Create a new ClipData holding a URI.

NewUri(ContentResolver, String, Uri)

Create a new ClipData holding a URI.

NewUri(ContentResolver, ICharSequence, Uri)

Create a new ClipData holding a URI.

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

Parameters

resolver
ContentResolver

ContentResolver used to get information about the URI.

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 a URI. If the URI is a content: URI, this will query the content provider for the MIME type of its data and use that as the MIME type. Otherwise, it will use the MIME type ClipDescription#MIMETYPE_TEXT_URILIST.

Java documentation for android.content.ClipData.newUri(android.content.ContentResolver, 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

NewUri(ContentResolver, String, Uri)

Create a new ClipData holding a URI.

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

Parameters

resolver
ContentResolver

ContentResolver used to get information about the URI.

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 a URI. If the URI is a content: URI, this will query the content provider for the MIME type of its data and use that as the MIME type. Otherwise, it will use the MIME type ClipDescription#MIMETYPE_TEXT_URILIST.

Java documentation for android.content.ClipData.newUri(android.content.ContentResolver, 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