EventusProcessorProvider

class EventusProcessorProvider : SymbolProcessorProvider

The entry point KSP looks up to create the Eventus processor.

The processor checks and generates in the Gradle module it is added to. It fails the build when an event of a sealed event type has no handler class, or more than one. When the module declares an expect property annotated with @EventusKoinModule, it generates the actual property: a Koin module that registers every event handler and error handler of the Gradle module. And for each handler interface annotated with @ContributesEventHandlers, it generates a Metro binding container that contributes the screen's event handlers to a dependency graph.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun create(environment: SymbolProcessorEnvironment): SymbolProcessor