Google 致力于为黑人社区推动种族平等。查看具体举措

ParcelableCompat

class ParcelableCompat
kotlin.Any
   ↳ androidx.core.os.ParcelableCompat

Helper for accessing features in android.os.Parcelable.

Summary

Public methods
static Creator<T>!

Factory method for Parcelable.Creator.

Public methods

newCreator

static fun <T : Any!> newCreator(callbacks: ParcelableCompatCreatorCallbacks<T>!): Creator<T>!

Deprecated: Use android.os.Parcelable.ClassLoaderCreator directly.

Factory method for Parcelable.Creator.

Parameters
callbacks ParcelableCompatCreatorCallbacks<T>!: Creator callbacks implementation.
Return
Creator<T>! New creator.