# ParcelableCompatCreatorCallbacks

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  
belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1  
Deprecated since version 26.1.0  

# ParcelableCompatCreatorCallbacks

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The support library has been superseded by[AndroidX](https://developer.android.com/jetpack/androidx)which is part of[Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library[class mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

`
public


interface
ParcelableCompatCreatorCallbacks
`  
`


`

|-------------------------------------------------------------|
| android.support.v4.os.ParcelableCompatCreatorCallbacks\<T\> |

<br />

*** ** * ** ***

<br />

**This interface was deprecated in API level 26.1.0.**   
Use[Parcelable.ClassLoaderCreator](https://developer.android.com/reference/android/os/Parcelable.ClassLoaderCreator.html)directly.

Callbacks a[Parcelable](https://developer.android.com/reference/android/os/Parcelable.html)creator should implement.

## Summary

|                                                                                                                                                                                                                                                                                              ### Public methods                                                                                                                                                                                                                                                                                               ||
|-----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` abstract T`   | ` `[createFromParcel](https://developer.android.com/reference/android/support/v4/os/ParcelableCompatCreatorCallbacks#createFromParcel(android.os.Parcel, java.lang.ClassLoader))`(`[Parcel](https://developer.android.com/reference/android/os/Parcel.html)` 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()](https://developer.android.com/reference/android/os/Parcelable.html#writeToParcel(android.os.Parcel, int))and using the given ClassLoader. |
| ` abstract T[]` | ` `[newArray](https://developer.android.com/reference/android/support/v4/os/ParcelableCompatCreatorCallbacks#newArray(int))`(int size) ` Create a new array of the Parcelable class.                                                                                                                                                                                                                                                                                                                                                                                                         |

## Public methods

### createFromParcel

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

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

<br />

|                                      Parameters                                       ||
|----------|-----------------------------------------------------------------------------|
| `in`     | `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 /> |

### newArray

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
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 /> |

-

  ## Interfaces

  - [CancellationSignal.OnCancelListener](https://developer.android.com/reference/android/support/v4/os/CancellationSignal.OnCancelListener)
  - [ParcelableCompatCreatorCallbacks](https://developer.android.com/reference/android/support/v4/os/ParcelableCompatCreatorCallbacks)
-

  ## Classes

  - [BuildCompat](https://developer.android.com/reference/android/support/v4/os/BuildCompat)
  - [CancellationSignal](https://developer.android.com/reference/android/support/v4/os/CancellationSignal)
  - [ConfigurationCompat](https://developer.android.com/reference/android/support/v4/os/ConfigurationCompat)
  - [EnvironmentCompat](https://developer.android.com/reference/android/support/v4/os/EnvironmentCompat)
  - [LocaleListCompat](https://developer.android.com/reference/android/support/v4/os/LocaleListCompat)
  - [ParcelableCompat](https://developer.android.com/reference/android/support/v4/os/ParcelableCompat)
  - [TraceCompat](https://developer.android.com/reference/android/support/v4/os/TraceCompat)
  - [UserManagerCompat](https://developer.android.com/reference/android/support/v4/os/UserManagerCompat)
-

  ## Exceptions

  - [OperationCanceledException](https://developer.android.com/reference/android/support/v4/os/OperationCanceledException)