ContentResolver.OpenTypedAssetFile Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Opens a typed asset file associated with a content URI.
[Android.Runtime.Register("openTypedAssetFile", "(Landroid/net/Uri;Ljava/lang/String;Landroid/os/Bundle;Landroid/os/CancellationSignal;)Landroid/content/res/AssetFileDescriptor;", "", ApiSince=29)]
public 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;", "", ApiSince=29)>]
member this.OpenTypedAssetFile : Android.Net.Uri * string * Android.OS.Bundle * Android.OS.CancellationSignal -> Android.Content.Res.AssetFileDescriptor
Parameters
- uri
- Uri
The desired URI to open. This value cannot be null.
- mimeTypeFilter
- String
The mimetype of data the client desires. This can be a pattern such as /, if the caller does not have specific type requirements; in this case the content provider will pick its best type matching the pattern. This value cannot be null.
- opts
- Bundle
Additional provider-dependent options like EXTRA_SIZE to indicate the desired size of an image. Whether or not the provider will respect these options is completely provider dependent. This value may be null.
- signal
- CancellationSignal
A signal to cancel the operation in progress or null if none.
Returns
Returns a new AssetFileDescriptor from which the client can read data of the desired type. This value may be null.
- Attributes
Remarks
Opens a typed asset file associated with a content 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.