/**@class android.os.Parcelable Interface for classes whose instances can be written to and restored from a {@link android.os.Parcel}. Classes implementing the Parcelable interface must also have a non-null static field called <code>CREATOR</code> of a type that implements the {@link android.os.Parcelable.Creator} interface. <p>A typical implementation of Parcelable is:</p> <pre> public class MyParcelable implements Parcelable { private int mData; public int describeContents() { return 0; } public void writeToParcel(Parcel out, int flags) { out.writeInt(mData); } public static final Parcelable.Creator<MyParcelable> CREATOR = new Parcelable.Creator<MyParcelable>() { public MyParcelable createFromParcel(Parcel in) { return new MyParcelable(in); } public MyParcelable[] newArray(int size) { return new MyParcelable[size]; } }; private MyParcelable(Parcel in) { mData = in.readInt(); } }</pre> */ var Parcelable = { /** Flag for use with {@link #writeToParcel}: the object being written is a return value, that is the result of a function such as "<code>Parcelable someFunction()</code>", "<code>void someFunction(out Parcelable)</code>", or "<code>void someFunction(inout Parcelable)</code>". Some implementations may want to release resources at this point. */ PARCELABLE_WRITE_RETURN_VALUE : "1", /** Bit masks for use with {@link #describeContents}: each bit represents a kind of object considered to have potential special significance when marshalled. */ CONTENTS_FILE_DESCRIPTOR : "1", /**Describe the kinds of special objects contained in this Parcelable's marshalled representation. @return {Number} a bitmask indicating the set of special object types marshalled by the Parcelable. */ describeContents : function( ) {}, /**Flatten this object in to a Parcel. @param {Object {Parcel}} dest The Parcel in which the object should be written. @param {Number} flags Additional flags about how the object should be written. May be 0 or {@link #PARCELABLE_WRITE_RETURN_VALUE}. */ writeToParcel : function( ) {}, };