gts13
10/23/2023, 8:37 AMChristian Ricardo
10/24/2023, 2:15 AM@HiltViewModel
class SomeViewModel @Inject constructor(
someInterface: SomeInterface
) : ViewModel(),
SomeInterface by someInterface
interface SomePresenter {
val someData: State<String>
val anotherData: State<String>
fun onEvent(event: YourEvent)
}
with the events you don't need that state machine, is the same but easier