Package android.os

Interface Parcelable.Creator<P>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      P createFromParcel​(Parcel source)
      Create a new instance of the Parcelable class, instantiating it from the given Parcel whose data had previously been written by Parcelable.writeToParcel().
      P[] newArray​(int size)
      Create a new array of the Parcelable class.
    • Method Detail

      • createFromParcel

        P createFromParcel​(Parcel source)
        Create a new instance of the Parcelable class, instantiating it from the given Parcel whose data had previously been written by Parcelable.writeToParcel().
        Parameters:
        source - Parcel to read from.
        Returns:
        The created object.
      • newArray

        P[] newArray​(int size)
        Create a new array of the Parcelable class.
        Parameters:
        size - The number of elements.
        Returns:
        The object array.