Språk

CloudMediaProvider.OpenFile Method

Definition

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.

Java documentation for android.provider.CloudMediaProvider.openFile(android.net.Uri, java.lang.String).

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.

Java documentation for android.provider.CloudMediaProvider.openFile(android.net.Uri, java.lang.String, android.os.CancellationSignal).

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