NavEaseAutoRegistry

Registry of every @AutoRegister screen, populated by KSP-generated code.

You do not interact with this object directly. Each module's generated AutoRegisterScreens.kt declares a navEaseBootstrap() function that fills it in, and the generated NavEaseHost overloads call that function before composing a host.

Registration is idempotent: calling navEaseBootstrap() more than once — from several hosts, or from several modules — adds each key exactly once.

Properties

Link copied to clipboard

true once at least one screen has been registered.

Functions

Link copied to clipboard
fun <K : NavKey> addEntry(keyClass: KClass<K>, rootKeyClass: KClass<*>, serializer: KSerializer<K>, screenFactory: () -> ActivityScreen<K>)

Registers one screen. Called from generated code only.