ParcelFileDescriptor.DetachFd 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.
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.