readParcelableCustom

fun <T : Parcelable, V : Parcelable> Parcel.readParcelableCustom(loader: ClassLoader?, kClass: KClass<V>): T?

Overload of Parcel.readParcelable to read Parcel objects, while allowing type flexibility.

Note:kClass is only used to allow the compiler to distinguish between the JVM signatures of the other overloads.

Parameters

T

Destination type of the Parcelable contents, with normal template arguments (if any). Ignored in this overload.

V

Destination type of the Parcelable contents, with generic template arguments (if any). Ignored in this overload.


fun <T : VersionedParcelable, V : VersionedParcelable> Parcel.readParcelableCustom(loader: ClassLoader?, kClass: KClass<V>): T?

Overload of Parcel.readParcelable to read VersionedParcelable objects, while allowing type flexibility.

Note:kClass is only used to allow the compiler to distinguish between the JVM signatures of the other overloads.

Parameters

T

Destination type of the Parcelable contents, with normal template arguments (if any).

V

Destination type of the Parcelable contents, with generic template arguments (if any).