SizeFSerializer



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

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.SizeFSerializer

@Serializable
data class MyModel(@Serializable(with = SizeFSerializer::class) val sizeF: android.util.SizeF)

Summary

Public constructors

android

Public functions

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

Public properties

open SerialDescriptor
android

Public constructors

SizeFSerializer

SizeFSerializer()

Public functions

deserialize

open fun deserialize(decoder: Decoder): SizeF

serialize

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

Public properties

descriptor

open val descriptorSerialDescriptor