Package android.os
Interface Parcelable.ClassLoaderCreator<T>
-
- All Superinterfaces:
Parcelable.Creator<T>
- Enclosing interface:
- Parcelable
public static interface Parcelable.ClassLoaderCreator<T> extends Parcelable.Creator<T>
Specialization ofParcelable.Creatorthat 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 TcreateFromParcel(android.os.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 byParcelable.writeToParcel()and using the given ClassLoader.-
Methods inherited from interface android.os.Parcelable.Creator
createFromParcel, newArray
-
-
-
-
Method Detail
-
createFromParcel
T createFromParcel(android.os.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 byParcelable.writeToParcel()and using the given ClassLoader.- Parameters:
source- The Parcel to read the object's data from.loader- The ClassLoader that this object is being created in.- Returns:
- Returns a new instance of the Parcelable class.
-
-