Android Guides | Samples

Android.OS.Parcel.WriteValue Method

Flatten a generic object in to a parcel.

Syntax

[Android.Runtime.Register("writeValue", "(Ljava/lang/Object;)V", "")]
[System.Obsolete("deprecated")]
public Void WriteValue (Object v)

Parameters

v

Remarks

Flatten a generic object in to a parcel. The given Object value may currently be one of the following types:

Parcelable objects are written with . using contextual flags of 0. When serializing objects containing ParcelFileDescriptors, this may result in file descriptor leaks when they are returned from Binder calls (where Parcelable.ParcelableWriteReturnValue should be used).

[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