Android.OS.ParcelFileDescriptor.AdoptFd Method
Take ownership of a raw native fd in to a new ParcelFileDescriptor.

Syntax

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

Parameters

fd
The native fd that the ParcelFileDescriptor should adopt.

Returns

Documentation for this section has not yet been entered.

Remarks

Take ownership of a raw native fd in to a new ParcelFileDescriptor. The returned ParcelFileDescriptor now owns the given fd, and will be responsible for closing it. You must not close the fd yourself.

[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