次の方法で共有


ParcelFileDescriptor.Fd Property

Definition

Return the native fd int for this ParcelFileDescriptor.

public virtual int Fd { [Android.Runtime.Register("getFd", "()I", "GetGetFdHandler")] get; }
[<get: Android.Runtime.Register("getFd", "()I", "GetGetFdHandler")>]
member this.Fd : int

Property Value

Attributes

Remarks

Return the native fd int for this ParcelFileDescriptor. The ParcelFileDescriptor still owns the fd, and it still must be closed through this API.

<strong>WARNING:</strong> Do not call close on the return value of this function or pass it to a function that assumes ownership of the fd.

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

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