次の方法で共有


ParcelFileDescriptor.Wrap Method

Definition

Create a new ParcelFileDescriptor wrapping an already-opened file.

[Android.Runtime.Register("wrap", "(Landroid/os/ParcelFileDescriptor;Landroid/os/Handler;Landroid/os/ParcelFileDescriptor$OnCloseListener;)Landroid/os/ParcelFileDescriptor;", "", ApiSince=30)]
public static Android.OS.ParcelFileDescriptor Wrap (Android.OS.ParcelFileDescriptor pfd, Android.OS.Handler handler, Android.OS.ParcelFileDescriptor.IOnCloseListener listener);
[<Android.Runtime.Register("wrap", "(Landroid/os/ParcelFileDescriptor;Landroid/os/Handler;Landroid/os/ParcelFileDescriptor$OnCloseListener;)Landroid/os/ParcelFileDescriptor;", "", ApiSince=30)>]
static member Wrap : Android.OS.ParcelFileDescriptor * Android.OS.Handler * Android.OS.ParcelFileDescriptor.IOnCloseListener -> Android.OS.ParcelFileDescriptor

Parameters

pfd
ParcelFileDescriptor

The already-opened file.

handler
Handler

to call listener from.

listener
ParcelFileDescriptor.IOnCloseListener

to be invoked when the returned descriptor has been closed.

Returns

a new ParcelFileDescriptor pointing to the given file.

Attributes

Remarks

Java documentation for android.os.ParcelFileDescriptor.wrap(android.os.ParcelFileDescriptor, android.os.Handler, android.os.OnCloseListener).

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