- uri
- The desired URI to open.
- mimeType
- The desired MIME type of the returned data. This can be a pattern such as */*, which will allow the content provider to select a type, though there is no way for you to determine what type it is returning.
- opts
- Additional provider-dependent options.
Documentation for this section has not yet been entered.
Type Reason Java.IO.FileNotFoundException Throws FileNotFoundException of no data of the desired type exists under the URI.
Open a raw file descriptor to access (potentially type transformed) data from a "content:" URI. This interacts with the underlying ContentProvider.OpenTypedAssetFile(Android.Net.Uri, System.String, System.String) method of the provider associated with the given URI, to retrieve retrieve any appropriate data stream for the data stored there.
Unlike ContentResolver.OpenAssetFileDescriptor(Android.Net.Uri, System.String), this function only works with "content:" URIs, because content providers are the only facility with an associated MIME type to ensure that the returned data stream is of the desired type.
All text/* streams are encoded in UTF-8.