# Parcelable.ClassLoaderCreator

Added in[API level 13](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary:[Methods](https://developer.android.com/reference/android/os/Parcelable.ClassLoaderCreator#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/os/Parcelable.ClassLoaderCreator#inhmethods)  

# Parcelable.ClassLoaderCreator

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/os/Parcelable.ClassLoaderCreator "View this page in Kotlin")\|Java

`
public
static


interface
Parcelable.ClassLoaderCreator
`  
`


implements

`[Creator](https://developer.android.com/reference/android/os/Parcelable.Creator)`<T>


`

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

<br />

*** ** * ** ***

Specialization of[Creator](https://developer.android.com/reference/android/os/Parcelable.Creator)that allows you to receive the ClassLoader the object is being created in.

## Summary

|                                                                                                                                                                                                                                                                                                                       ### Public methods                                                                                                                                                                                                                                                                                                                       ||
|---------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` abstract T` | ` `[createFromParcel](https://developer.android.com/reference/android/os/Parcelable.ClassLoaderCreator#createFromParcel(android.os.Parcel,%20java.lang.ClassLoader))`(`[Parcel](https://developer.android.com/reference/android/os/Parcel)` source, `[ClassLoader](https://developer.android.com/reference/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()](https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int))and using the given ClassLoader. |

| ### Inherited methods |
|-----------------------|---|
| From interface` `[android.os.Parcelable.Creator](https://developer.android.com/reference/android/os/Parcelable.Creator)` ` |-----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract T`   | ` `[createFromParcel](https://developer.android.com/reference/android/os/Parcelable.Creator#createFromParcel(android.os.Parcel))`(`[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[Parcelable.writeToParcel()](https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)). | | ` abstract T[]` | ` `[newArray](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 13](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public abstract T createFromParcel (Parcel source, 
                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()](https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int))and using the given ClassLoader.

<br />

|                                      Parameters                                       ||
|----------|-----------------------------------------------------------------------------|
| `source` | `Parcel`: The Parcel to read the object's data from. <br />                 |
| `loader` | `ClassLoader`: The ClassLoader that this object is being created in. <br /> |

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