ParcelFileDescriptor.Wrap 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.
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
The already-opened file.
- handler
- Handler
to call listener from.
to be invoked when the returned descriptor has been closed.
Returns
a new ParcelFileDescriptor pointing to the given file.
- Attributes
Remarks
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.