SavedStateConfiguration.Builder



Builder of the SavedStateConfiguration instance provided by SavedStateConfig { ... } factory function.

Summary

Public properties

Int

Defines which classes and objects should have class discriminator added to the output.

Cmn
Boolean

Specifies whether default values of Kotlin properties should be encoded.

Cmn
<Error class: unknown class>

Module with contextual and polymorphic serializers to be used in the resulting SavedStateConfiguration instance.

Cmn

Public properties

classDiscriminatorMode

var classDiscriminatorModeInt

Defines which classes and objects should have class discriminator added to the output. ClassDiscriminatorMode.POLYMORPHIC by default.

encodeDefaults

var encodeDefaultsBoolean

Specifies whether default values of Kotlin properties should be encoded. false by default. This option does not affect decoding.

serializersModule

var serializersModule<Error class: unknown class>

Module with contextual and polymorphic serializers to be used in the resulting SavedStateConfiguration instance.