Android.OS.ParcelFileDescriptor.FromFd Method
Create a new ParcelFileDescriptor from a raw native fd.

Syntax

[Android.Runtime.Register("fromFd", "(I)Landroid/os/ParcelFileDescriptor;", "")]
public static ParcelFileDescriptor FromFd (int fd)

Parameters

fd
The native fd that the ParcelFileDescriptor should dup.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.IO.IOException

Remarks

Create a new ParcelFileDescriptor from a raw native fd. The new ParcelFileDescriptor holds a dup of the original fd passed in here, so you must still close that fd as well as the new ParcelFileDescriptor.

[Android Documentation]

Requirements

Namespace: Android.OS
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 13