Sdílet prostřednictvím


ContentProviderClient.OpenAssetFile Method

Definition

Overloads

OpenAssetFile(Uri, String, CancellationSignal)

See ContentProvider#openAssetFile ContentProvider.openAssetFile.

OpenAssetFile(Uri, String)

See ContentProvider#openAssetFile ContentProvider.openAssetFile.

OpenAssetFile(Uri, String, CancellationSignal)

See ContentProvider#openAssetFile ContentProvider.openAssetFile.

[Android.Runtime.Register("openAssetFile", "(Landroid/net/Uri;Ljava/lang/String;Landroid/os/CancellationSignal;)Landroid/content/res/AssetFileDescriptor;", "GetOpenAssetFile_Landroid_net_Uri_Ljava_lang_String_Landroid_os_CancellationSignal_Handler")]
public virtual Android.Content.Res.AssetFileDescriptor? OpenAssetFile (Android.Net.Uri url, string mode, Android.OS.CancellationSignal? signal);
[<Android.Runtime.Register("openAssetFile", "(Landroid/net/Uri;Ljava/lang/String;Landroid/os/CancellationSignal;)Landroid/content/res/AssetFileDescriptor;", "GetOpenAssetFile_Landroid_net_Uri_Ljava_lang_String_Landroid_os_CancellationSignal_Handler")>]
abstract member OpenAssetFile : Android.Net.Uri * string * Android.OS.CancellationSignal -> Android.Content.Res.AssetFileDescriptor
override this.OpenAssetFile : Android.Net.Uri * string * Android.OS.CancellationSignal -> Android.Content.Res.AssetFileDescriptor

Parameters

url
Uri
mode
String

Returns

Attributes

Exceptions

Remarks

See ContentProvider#openAssetFile ContentProvider.openAssetFile. Note that this <em>does not</em> take care of non-content: URIs such as file:. It is strongly recommended you use the ContentResolver#openAssetFileDescriptor ContentResolver.openAssetFileDescriptor API instead.

Java documentation for android.content.ContentProviderClient.openAssetFile(android.net.Uri, java.lang.String, android.os.CancellationSignal).

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

OpenAssetFile(Uri, String)

See ContentProvider#openAssetFile ContentProvider.openAssetFile.

[Android.Runtime.Register("openAssetFile", "(Landroid/net/Uri;Ljava/lang/String;)Landroid/content/res/AssetFileDescriptor;", "GetOpenAssetFile_Landroid_net_Uri_Ljava_lang_String_Handler")]
public virtual Android.Content.Res.AssetFileDescriptor? OpenAssetFile (Android.Net.Uri url, string mode);
[<Android.Runtime.Register("openAssetFile", "(Landroid/net/Uri;Ljava/lang/String;)Landroid/content/res/AssetFileDescriptor;", "GetOpenAssetFile_Landroid_net_Uri_Ljava_lang_String_Handler")>]
abstract member OpenAssetFile : Android.Net.Uri * string -> Android.Content.Res.AssetFileDescriptor
override this.OpenAssetFile : Android.Net.Uri * string -> Android.Content.Res.AssetFileDescriptor

Parameters

url
Uri
mode
String

Returns

Attributes

Exceptions

Remarks

See ContentProvider#openAssetFile ContentProvider.openAssetFile. Note that this <em>does not</em> take care of non-content: URIs such as file:. It is strongly recommended you use the ContentResolver#openAssetFileDescriptor ContentResolver.openAssetFileDescriptor API instead.

Java documentation for android.content.ContentProviderClient.openAssetFile(android.net.Uri, 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