- uri
- The data in the content provider being queried.
- mimeTypeFilter
- The type of data the client desires. May 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.
- opts
- Additional options from the client. The definitions of these are specific to the content provider being called.
Documentation for this section has not yet been entered.
Type Reason Java.IO.FileNotFoundException Throws FileNotFoundException if there is no file associated with the given URI or the mode is invalid. Java.Lang.SecurityException Throws SecurityException if the caller does not have permission to access the data. Java.Lang.IllegalArgumentException Throws IllegalArgumentException if the content provider does not support the requested MIME type.
Called by a client to open a read-only stream containing data of a particular MIME type. This is like ContentProvider.OpenAssetFile(Android.Net.Uri, System.String), except the file can only be read-only and the content provider may perform data conversions to generate data of the desired type.
The default implementation compares the given mimeType against the result of ContentProvider.GetType(Android.Net.Uri) and, if they match, simply calls ContentProvider.OpenAssetFile(Android.Net.Uri, System.String).
See Android.Content.ClipData for examples of the use and implementation of this method.
The returned AssetFileDescriptor can be a pipe or socket pair to enable streaming of data.
For better interoperability with other applications, it is recommended that for any URIs that can be opened, you also support queries on them containing at least the columns specified by Android.Provider.OpenableColumns. You may also want to support other common columns if you have additional meta-data to supply, such as NoType:android/provider/MediaStore$MediaColumns;Href=../../../reference/android/provider/MediaStore.MediaColumns.html#DATE_ADDED in NoType:android/provider/MediaStore$MediaColumns;Href=../../../reference/android/provider/MediaStore.MediaColumns.html.