Share via


Icon.CreateWithContentUri Method

Definition

Overloads

CreateWithContentUri(Uri)

Create an Icon pointing to an image file specified by URI.

CreateWithContentUri(String)

Create an Icon pointing to an image file specified by URI.

CreateWithContentUri(Uri)

Create an Icon pointing to an image file specified by URI.

[Android.Runtime.Register("createWithContentUri", "(Landroid/net/Uri;)Landroid/graphics/drawable/Icon;", "", ApiSince=23)]
public static Android.Graphics.Drawables.Icon CreateWithContentUri (Android.Net.Uri? uri);
[<Android.Runtime.Register("createWithContentUri", "(Landroid/net/Uri;)Landroid/graphics/drawable/Icon;", "", ApiSince=23)>]
static member CreateWithContentUri : Android.Net.Uri -> Android.Graphics.Drawables.Icon

Parameters

uri
Uri

A uri referring to local content:// or file:// image data.

Returns

Attributes

Remarks

Create an Icon pointing to an image file specified by URI.

Java documentation for android.graphics.drawable.Icon.createWithContentUri(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

CreateWithContentUri(String)

Create an Icon pointing to an image file specified by URI.

[Android.Runtime.Register("createWithContentUri", "(Ljava/lang/String;)Landroid/graphics/drawable/Icon;", "", ApiSince=23)]
public static Android.Graphics.Drawables.Icon CreateWithContentUri (string? uri);
[<Android.Runtime.Register("createWithContentUri", "(Ljava/lang/String;)Landroid/graphics/drawable/Icon;", "", ApiSince=23)>]
static member CreateWithContentUri : string -> Android.Graphics.Drawables.Icon

Parameters

uri
String

A uri referring to local content:// or file:// image data.

Returns

Attributes

Remarks

Create an Icon pointing to an image file specified by URI.

Java documentation for android.graphics.drawable.Icon.createWithContentUri(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