Package icyllis.modernui.util
Interface Parcelable.Creator<T>
- All Known Subinterfaces:
Parcelable.ClassLoaderCreator<T>
- Enclosing interface:
Parcelable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interface that must be implemented and provided as a public CREATOR
field that creates instances of your
Parcelable
class from a Parcel
.-
Method Summary
Modifier and TypeMethodDescriptioncreateFromParcel
(Parcel source) Create a new instance of theParcelable
class, instantiating it from the givenParcel
whose data had previously been written byParcelable.writeToParcel(Parcel, int)
.
-
Method Details
-
createFromParcel
Create a new instance of theParcelable
class, instantiating it from the givenParcel
whose data had previously been written byParcelable.writeToParcel(Parcel, int)
.- Parameters:
source
- the stream to read the object's data from- Returns:
- a new instance of the
Parcelable
class
-