BaseTestEventSinkType

expect sealed interface BaseTestEventSinkType<UiEvent>(source)

Base expect type for TestEventSink. This layer of indirection is necessary because Kotlin/JS does not allow extension of function types. To work around it, we make this interface extend (UiEvent) -> Unit on all platforms except JS, and then expose an asEventSinkFunction() extension function on TestEventSink in JS that returns a function wrapper around it.

This type is not intended to be used directly or implemented by consumers of this library.

Inheritors

Functions

Link copied to clipboard
actual abstract operator override fun invoke(event: UiEvent)
expect abstract operator fun invoke(event: UiEvent)
actual abstract operator fun invoke(event: UiEvent)
actual abstract operator override fun invoke(event: UiEvent)
actual abstract operator override fun invoke(event: UiEvent)
actual abstract operator fun invoke(event: UiEvent)