IBinderSerializer



A serializer for IBinder. This serializer uses SavedState's API directly to save/load a IBinder.

Note that this serializer should be used with SavedStateEncoder or SavedStateDecoder only. Using it with other Encoders/Decoders may throw IllegalArgumentException.

import androidx.savedstate.serialization.serializers.IBinderSerializer

@Serializable
data class MyModel(
    @Serializable(with = IBinderSerializer::class) val binder: android.os.IBinder
)

Summary

Public constructors

android

Public functions

open IBinder
deserialize(decoder: Decoder)
android
open Unit
serialize(encoder: Encoder, value: IBinder)
android

Public properties

open SerialDescriptor
android

Public constructors

IBinderSerializer

IBinderSerializer()

Public functions

deserialize

open fun deserialize(decoder: Decoder): IBinder

serialize

open fun serialize(encoder: Encoder, value: IBinder): Unit

Public properties

descriptor

open val descriptorSerialDescriptor