Package android.os

Interface Parcelable.ClassLoaderCreator<T>

    • 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 by Parcelable.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.