语言

Icon.CreateWithContentUri 方法

定义

重载

名称 说明
CreateWithContentUri(Uri)

创建指向 URI 指定的图像文件的图标。

CreateWithContentUri(String)

创建指向 URI 指定的图像文件的图标。

CreateWithContentUri(Uri)

创建指向 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

参数

uri
Uri

引用本地 content:// 或 file:// 图像数据的 URI。

返回

引用提供的 URI 的图标。

特性

注解

创建指向 URI 指定的图像文件的图标。

Java文档android.graphics.drawable.Icon.createWithContentUri(android.net.Uri)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

CreateWithContentUri(String)

创建指向 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

参数

uri
String

引用本地 content:// 或 file:// 图像数据的 URI。

返回

引用提供的 URI 的图标。

特性

注解

创建指向 URI 指定的图像文件的图标。

Java文档android.graphics.drawable.Icon.createWithContentUri(java.lang.String)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于