ContentProviderClient.OpenFile 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.
Overloads
OpenFile(Uri, String) |
See |
OpenFile(Uri, String, CancellationSignal) |
See |
OpenFile(Uri, String)
See ContentProvider#openFile ContentProvider.openFile
.
[Android.Runtime.Register("openFile", "(Landroid/net/Uri;Ljava/lang/String;)Landroid/os/ParcelFileDescriptor;", "GetOpenFile_Landroid_net_Uri_Ljava_lang_String_Handler")]
public virtual Android.OS.ParcelFileDescriptor? OpenFile (Android.Net.Uri url, string mode);
[<Android.Runtime.Register("openFile", "(Landroid/net/Uri;Ljava/lang/String;)Landroid/os/ParcelFileDescriptor;", "GetOpenFile_Landroid_net_Uri_Ljava_lang_String_Handler")>]
abstract member OpenFile : Android.Net.Uri * string -> Android.OS.ParcelFileDescriptor
override this.OpenFile : Android.Net.Uri * string -> Android.OS.ParcelFileDescriptor
Parameters
- url
- Uri
- mode
- String
Returns
- Attributes
Exceptions
Remarks
See ContentProvider#openFile ContentProvider.openFile
. Note that this <em>does not</em> take care of non-content: URIs such as file:. It is strongly recommended you use the ContentResolver#openFileDescriptor ContentResolver.openFileDescriptor
API instead.
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
OpenFile(Uri, String, CancellationSignal)
See ContentProvider#openFile ContentProvider.openFile
.
[Android.Runtime.Register("openFile", "(Landroid/net/Uri;Ljava/lang/String;Landroid/os/CancellationSignal;)Landroid/os/ParcelFileDescriptor;", "GetOpenFile_Landroid_net_Uri_Ljava_lang_String_Landroid_os_CancellationSignal_Handler")]
public virtual Android.OS.ParcelFileDescriptor? OpenFile (Android.Net.Uri url, string mode, Android.OS.CancellationSignal? signal);
[<Android.Runtime.Register("openFile", "(Landroid/net/Uri;Ljava/lang/String;Landroid/os/CancellationSignal;)Landroid/os/ParcelFileDescriptor;", "GetOpenFile_Landroid_net_Uri_Ljava_lang_String_Landroid_os_CancellationSignal_Handler")>]
abstract member OpenFile : Android.Net.Uri * string * Android.OS.CancellationSignal -> Android.OS.ParcelFileDescriptor
override this.OpenFile : Android.Net.Uri * string * Android.OS.CancellationSignal -> Android.OS.ParcelFileDescriptor
Parameters
- url
- Uri
- mode
- String
- signal
- CancellationSignal
Returns
- Attributes
Exceptions
Remarks
See ContentProvider#openFile ContentProvider.openFile
. Note that this <em>does not</em> take care of non-content: URIs such as file:. It is strongly recommended you use the ContentResolver#openFileDescriptor ContentResolver.openFileDescriptor
API instead.
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.