public interface Parcelable
Parcel
. Classes implementing the Parcelable interface must also have a
non-null static field called CREATOR
of a type that implements
the Parcelable.Creator
interface.
See android.os.Parcelable
documentation for reference.Modifier and Type | Interface and Description |
---|---|
static interface |
Parcelable.ClassLoaderCreator<P>
Specialization of Parcelable.Creator that allows you to receive the
ClassLoader the object is being created in.
|
static interface |
Parcelable.Creator<P>
Creator class.
|
Modifier and Type | Field and Description |
---|---|
static int |
CONTENTS_FILE_DESCRIPTOR
Bit masks for use with describeContents(): each bit represents a kind of
object considered to have potential special significance when
marshaled.
|
static int |
PARCELABLE_WRITE_RETURN_VALUE
Flag for use with writeToParcel(Parcel, int): the object being written
is a return value, that is the result of a function such as "Parcelable
someFunction()", "void someFunction(out Parcelable)", or "void
someFunction(inout Parcelable)".
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents()
Describe the kinds of special objects contained in this Parcelable's
marshaled representation.
|
void |
writeToParcel(Parcel dest,
int flags)
Flatten this object in to a Parcel.
|
static final int CONTENTS_FILE_DESCRIPTOR
static final int PARCELABLE_WRITE_RETURN_VALUE
int describeContents()
void writeToParcel(Parcel dest, int flags)
dest
- The parcelable to write to.flags
- Bitmask of PARCELABLE_WRITE_* flags.Copyright © 2018. All rights reserved.