Package android.os
Interface Parcelable.ClassLoaderCreator<P>
-
- All Superinterfaces:
Parcelable.Creator<P>
- Enclosing interface:
- Parcelable
public static interface Parcelable.ClassLoaderCreator<P> extends Parcelable.Creator<P>
Specialization of Parcelable.Creator that allows you to receive the ClassLoader the object is being created in.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description P
createFromParcel(Parcel source, java.lang.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.-
Methods inherited from interface android.os.Parcelable.Creator
createFromParcel, newArray
-
-
-
-
Method Detail
-
createFromParcel
P createFromParcel(Parcel source, java.lang.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.- Parameters:
source
- Parcel to read from.loader
- The classloader to use to load instance classes.- Returns:
- The created object.
-
-