# ParcelableCompatCreatorCallbacks

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/os/ParcelableCompatCreatorCallbacks.java+class:androidx.core.os.ParcelableCompatCreatorCallbacks) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

*** ** * ** ***


```
interface ParcelableCompatCreatorCallbacks<T>
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This interface is deprecated.**   
>
> Use `https://developer.android.com/reference/android/os/Parcelable.ClassLoaderCreator.html` directly.

Callbacks a `https://developer.android.com/reference/android/os/Parcelable.html` creator should implement.

## Summary

| ### Public functions |
|---|---|
| `T!` | `[createFromParcel](https://developer.android.com/reference/kotlin/androidx/core/os/ParcelableCompatCreatorCallbacks#createFromParcel(android.os.Parcel,java.lang.ClassLoader))(in: https://developer.android.com/reference/android/os/Parcel.html!, loader: https://developer.android.com/reference/java/lang/ClassLoader.html!)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<T!>!` | `[newArray](https://developer.android.com/reference/kotlin/androidx/core/os/ParcelableCompatCreatorCallbacks#newArray(int))(size: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** Deprecated in Java |

## Public functions

### createFromParcel

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
fun [createFromParcel](https://developer.android.com/reference/kotlin/androidx/core/os/ParcelableCompatCreatorCallbacks#createFromParcel(android.os.Parcel,java.lang.ClassLoader))(in: Parcel!, loader: ClassLoader!): T!
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

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.html#writeToParcel(android.os.Parcel, int)` and using the given ClassLoader.

| Parameters |
|---|---|
| `in: https://developer.android.com/reference/android/os/Parcel.html!` | The Parcel to read the object's data from. |
| `loader: https://developer.android.com/reference/java/lang/ClassLoader.html!` | The ClassLoader that this object is being created in. |

| Returns |
|---|---|
| `T!` | Returns a new instance of the Parcelable class. |

### newArray

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
fun [newArray](https://developer.android.com/reference/kotlin/androidx/core/os/ParcelableCompatCreatorCallbacks#newArray(int))(size: Int): Array<T!>!
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Create a new array of the Parcelable class.

| Parameters |
|---|---|
| `size: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Size of the array. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<T!>!` | Returns an array of the Parcelable class, with every entry initialized to null. |