public interface ParcelableCompatCreatorCallbacks<T>
Parcelable
creator should implement.Modifier and Type | Method and Description |
---|---|
T |
createFromParcel(Parcel in,
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. |
T[] |
newArray(int size)
Create a new array of the Parcelable class.
|
T createFromParcel(Parcel in, ClassLoader loader)
Parcelable.writeToParcel()
and
using the given ClassLoader.in
- The Parcel to read the object's data from.loader
- The ClassLoader that this object is being created in.T[] newArray(int size)
size
- Size of the array.