android-coroutines / nl.adaptivity.android.kryo / kryoAndroid

kryoAndroid

val kryoAndroid: Kryo

Get a Kryo serializer for a context-less application. For serialization this should not make a difference, but for deserialization any contexts present in the state will lead to failure.

fun kryoAndroid(context: Context): Kryo

Get a Kryo serializer that handles Android contexts special. It allows dynamic replacement of markers indicating a context with the passed in context (or application context if that applies).