CloudMediaProvider.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
| Name | Description |
|---|---|
| OpenFile(Uri, String) |
Implementation is provided by the parent class. |
| OpenFile(Uri, String, CancellationSignal) |
Implementation is provided by the parent class. |
OpenFile(Uri, String)
Implementation is provided by the parent class.
[Android.Runtime.Register("openFile", "(Landroid/net/Uri;Ljava/lang/String;)Landroid/os/ParcelFileDescriptor;", "", ApiSince=33)]
public override sealed Android.OS.ParcelFileDescriptor OpenFile(Android.Net.Uri uri, string mode);
[<Android.Runtime.Register("openFile", "(Landroid/net/Uri;Ljava/lang/String;)Landroid/os/ParcelFileDescriptor;", "", ApiSince=33)>]
override this.OpenFile : Android.Net.Uri * string -> Android.OS.ParcelFileDescriptor
Parameters
- uri
- Uri
A URI whose last path segment supplies the media ID to open.
- mode
- String
Not used to select an access mode; the provider opens the media through OnOpenMedia(String, Bundle, CancellationSignal).
Returns
The file descriptor returned by the media-opening callback.
- Attributes
Remarks
Implementation is provided by the parent class. Cannot be overridden.
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)
Implementation is provided by the parent class.
[Android.Runtime.Register("openFile", "(Landroid/net/Uri;Ljava/lang/String;Landroid/os/CancellationSignal;)Landroid/os/ParcelFileDescriptor;", "", ApiSince=33)]
public override sealed Android.OS.ParcelFileDescriptor OpenFile(Android.Net.Uri uri, string mode, Android.OS.CancellationSignal? signal);
[<Android.Runtime.Register("openFile", "(Landroid/net/Uri;Ljava/lang/String;Landroid/os/CancellationSignal;)Landroid/os/ParcelFileDescriptor;", "", ApiSince=33)>]
override this.OpenFile : Android.Net.Uri * string * Android.OS.CancellationSignal -> Android.OS.ParcelFileDescriptor
Parameters
- uri
- Uri
A URI whose last path segment supplies the media ID to open.
- mode
- String
Not used to select an access mode; the provider opens the media through OnOpenMedia(String, Bundle, CancellationSignal).
- signal
- CancellationSignal
The cancellation signal forwarded to the media-opening callback.
Returns
The file descriptor returned by the media-opening callback.
- Attributes
Remarks
Implementation is provided by the parent class. Cannot be overridden.
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.