ParcelFileDescriptor.CreateReliablePipe 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.
Create two ParcelFileDescriptors structured as a data pipe.
[Android.Runtime.Register("createReliablePipe", "()[Landroid/os/ParcelFileDescriptor;", "")]
public static Android.OS.ParcelFileDescriptor[]? CreateReliablePipe ();
[<Android.Runtime.Register("createReliablePipe", "()[Landroid/os/ParcelFileDescriptor;", "")>]
static member CreateReliablePipe : unit -> Android.OS.ParcelFileDescriptor[]
Returns
- Attributes
Exceptions
Remarks
Create two ParcelFileDescriptors structured as a data pipe. The first ParcelFileDescriptor in the returned array is the read side; the second is the write side.
The write end has the ability to deliver an error message through #closeWithError(String)
which can be handled by the read end calling #checkError()
, usually after detecting an EOF. This can also be used to detect remote crashes.
Java documentation for android.os.ParcelFileDescriptor.createReliablePipe()
.
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.