public static interface Parcelable.ClassLoaderCreator<T> extends Parcelable.Creator<T>
Parcelable.Creator
that allows you to receive the
ClassLoader the object is being created in.Modifier and Type | Method and Description |
---|---|
T |
createFromParcel(Parcel source,
ClassLoader loader)
Create a new instance of the Parcelable class, instantiating it
from the given Parcel whose data had previously been written by
Parcelable.writeToParcel() and
using the given ClassLoader. |
createFromParcel, newArray
T createFromParcel(Parcel source, ClassLoader loader)
Parcelable.writeToParcel()
and
using the given ClassLoader.source
- The Parcel to read the object's data from.loader
- The ClassLoader that this object is being created in.