processSignal

Processes a Transmission.Signal through the router.

This is the primary method for sending user interactions and UI events to the transformers. After processing the signal through the router, it calls onProcessSignal for any additional custom logic.

Example Usage:

// In your ViewModel
fun onUserClickLogin(credentials: Credentials) {
processSignal(AuthSignal.Login(credentials))
}

// In your UI
Button(onClick = { viewModel.onUserClickLogin(credentials) }) {
Text("Login")
}

Parameters

signal

The signal to process