Android Guides | Samples

Android.OS.Parcel.WriteFileDescriptor Method

Write a FileDescriptor into the parcel at the current dataPosition(), growing dataCapacity() if needed.

Syntax

[Android.Runtime.Register("writeFileDescriptor", "(Ljava/io/FileDescriptor;)V", "")]
[System.Obsolete("deprecated")]
public Void WriteFileDescriptor (FileDescriptor val)

Parameters

val

Remarks

Write a FileDescriptor into the parcel at the current dataPosition(), growing dataCapacity() if needed.

The file descriptor will not be closed, which may result in file descriptor leaks when objects are returned from Binder calls. Use ParcelFileDescriptor.WriteToParcel(Parcel,ParcelableWriteFlags) instead, which accepts contextual flags and will close the original file descriptor if Parcelable.ParcelableWriteReturnValue is set.

[Android Documentation]

Requirements

Namespace: Android.OS
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1