DocumentsProvider.OpenTypedAssetFile Method

Definition

Overloads

OpenTypedAssetFile(Uri, String, Bundle)

Implementation is provided by the parent class.

OpenTypedAssetFile(Uri, String, Bundle, CancellationSignal)

Implementation is provided by the parent class.

OpenTypedAssetFile(Uri, String, Bundle)

Implementation is provided by the parent class.

[Android.Runtime.Register("openTypedAssetFile", "(Landroid/net/Uri;Ljava/lang/String;Landroid/os/Bundle;)Landroid/content/res/AssetFileDescriptor;", "")]
public override sealed Android.Content.Res.AssetFileDescriptor? OpenTypedAssetFile (Android.Net.Uri? uri, string? mimeTypeFilter, Android.OS.Bundle? opts);
[<Android.Runtime.Register("openTypedAssetFile", "(Landroid/net/Uri;Ljava/lang/String;Landroid/os/Bundle;)Landroid/content/res/AssetFileDescriptor;", "")>]
override this.OpenTypedAssetFile : Android.Net.Uri * string * Android.OS.Bundle -> Android.Content.Res.AssetFileDescriptor

Parameters

uri
Uri

The data in the content provider being queried.

mimeTypeFilter
String

The type of data the client desires. May be a pattern, such as &#47;, if the caller does not have specific type requirements; in this case the content provider will pick its best type matching the pattern.

opts
Bundle

Additional options from the client. The definitions of these are specific to the content provider being called.

Returns

Attributes

Exceptions

Remarks

Implementation is provided by the parent class. Cannot be overridden.

Java documentation for android.provider.DocumentsProvider.openTypedAssetFile(android.net.Uri, java.lang.String, android.os.Bundle).

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.

See also

  • <xref:Android.Provider.DocumentsProvider.OpenDocumentThumbnail(System.String%2c+Android.Graphics.Point%2c+Android.Graphics.Point)>

Applies to

OpenTypedAssetFile(Uri, String, Bundle, CancellationSignal)

Implementation is provided by the parent class.

[Android.Runtime.Register("openTypedAssetFile", "(Landroid/net/Uri;Ljava/lang/String;Landroid/os/Bundle;Landroid/os/CancellationSignal;)Landroid/content/res/AssetFileDescriptor;", "")]
public override sealed Android.Content.Res.AssetFileDescriptor? OpenTypedAssetFile (Android.Net.Uri? uri, string? mimeTypeFilter, Android.OS.Bundle? opts, Android.OS.CancellationSignal? signal);
[<Android.Runtime.Register("openTypedAssetFile", "(Landroid/net/Uri;Ljava/lang/String;Landroid/os/Bundle;Landroid/os/CancellationSignal;)Landroid/content/res/AssetFileDescriptor;", "")>]
override this.OpenTypedAssetFile : Android.Net.Uri * string * Android.OS.Bundle * Android.OS.CancellationSignal -> Android.Content.Res.AssetFileDescriptor

Parameters

uri
Uri

The data in the content provider being queried.

mimeTypeFilter
String

The type of data the client desires. May be a pattern, such as &#47;, if the caller does not have specific type requirements; in this case the content provider will pick its best type matching the pattern.

opts
Bundle

Additional options from the client. The definitions of these are specific to the content provider being called.

signal
CancellationSignal

A signal to cancel the operation in progress, or null if none. For example, if you are downloading a file from the network to service a "rw" mode request, you should periodically call ThrowIfCanceled() to check whether the client has canceled the request and abort the download.

Returns

Attributes

Exceptions

Remarks

Implementation is provided by the parent class. Cannot be overridden.

Java documentation for android.provider.DocumentsProvider.openTypedAssetFile(android.net.Uri, java.lang.String, android.os.Bundle, 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.

See also

  • <xref:Android.Provider.DocumentsProvider.OpenDocumentThumbnail(System.String%2c+Android.Graphics.Point%2c+Android.Graphics.Point)>

Applies to