NavigationEntrySerializer

class NavigationEntrySerializer(resolvePath: (String) -> Navigatable?) : KSerializer<NavigationEntry> (source)

Serializes NavigationEntry as (path, params, stackPosition) and rehydrates the Navigatable reference from the registered navigation graph on deserialization.

Registered contextually by NavigationModule via CustomTypeRegistrar, capturing the module's route registry, so persisted state restores real navigatable references without screens or modals ever being serialized.

Constructors

Link copied to clipboard
constructor(resolvePath: (String) -> Navigatable?)

Properties

Link copied to clipboard
open override val descriptor: SerialDescriptor

Functions

Link copied to clipboard
open override fun deserialize(decoder: Decoder): NavigationEntry
Link copied to clipboard
open override fun serialize(encoder: Encoder, value: NavigationEntry)