Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Methods](https://developer.android.com/reference/android/os/Parcelable.Creator#pubmethods)

# Parcelable.Creator

*** ** * ** ***

` public static interface Parcelable.Creator `   
` `

|---|
| android.os.Parcelable.Creator\<T\> |

Known indirect subclasses [Parcelable.ClassLoaderCreator](https://developer.android.com/reference/android/os/Parcelable.ClassLoaderCreator)\<T\> [Parcelable.ClassLoaderCreator](https://developer.android.com/reference/android/os/Parcelable.ClassLoaderCreator)\<T\> Specialization of `https://developer.android.com/reference/android/os/Parcelable.Creator` that allows you to receive the ClassLoader the object is being created in.   

*** ** * ** ***

Interface that must be implemented and provided as a public CREATOR field that generates instances of your Parcelable class from a Parcel.

## Summary

| ### Public methods ||
|---|---|
| ` abstract T` | ` https://developer.android.com/reference/android/os/Parcelable.Creator#createFromParcel(android.os.Parcel)(https://developer.android.com/reference/android/os/Parcel source) ` Create a new instance of the Parcelable class, instantiating it from the given Parcel whose data had previously been written by `https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)`. |
| ` abstract T[]` | ` https://developer.android.com/reference/android/os/Parcelable.Creator#newArray(int)(int size) ` Create a new array of the Parcelable class. |

## Public methods

### createFromParcel

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract T createFromParcel (Parcel source)
```

Create a new instance of the Parcelable class, instantiating it from the given Parcel whose data had previously been written by `https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)`.

<br />

| Parameters ||
|---|---|
| `source` | `Parcel`: The Parcel to read the object's data from. <br /> |

| Returns ||
|---|---|
| `T` | Returns a new instance of the Parcelable class. <br /> |

### newArray

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract T[] newArray (int size)
```

Create a new array of the Parcelable class.

<br />

| Parameters ||
|---|---|
| `size` | `int`: Size of the array. <br /> |

| Returns ||
|---|---|
| `T[]` | Returns an array of the Parcelable class, with every entry initialized to null. <br /> |