Partager via


Parcel.WriteSerializable(ISerializable) Method

Definition

Write a generic serializable object in to a Parcel.

[Android.Runtime.Register("writeSerializable", "(Ljava/io/Serializable;)V", "")]
public void WriteSerializable (Java.IO.ISerializable? s);
[<Android.Runtime.Register("writeSerializable", "(Ljava/io/Serializable;)V", "")>]
member this.WriteSerializable : Java.IO.ISerializable -> unit

Parameters

Attributes

Remarks

Write a generic serializable object in to a Parcel. It is strongly recommended that this method be avoided, since the serialization overhead is extremely large, and this approach will be much slower than using the other approaches to writing data in to a Parcel.

Java documentation for android.os.Parcel.writeSerializable(java.io.Serializable).

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