ParcelFileDescriptor.DetachFd Method

Definition

Return the native fd int for this ParcelFileDescriptor and detach it from the object here.

[Android.Runtime.Register("detachFd", "()I", "GetDetachFdHandler")]
public virtual int DetachFd ();
[<Android.Runtime.Register("detachFd", "()I", "GetDetachFdHandler")>]
abstract member DetachFd : unit -> int
override this.DetachFd : unit -> int

Returns

Attributes

Remarks

Return the native fd int for this ParcelFileDescriptor and detach it from the object here. You are now responsible for closing the fd in native code.

You should not detach when the original creator of the descriptor is expecting a reliable signal through #close() or #closeWithError(String).

Java documentation for android.os.ParcelFileDescriptor.detachFd().

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

See also