Skip to content

v3.2.0

Compare
Choose a tag to compare
@motorro motorro released this 08 Nov 09:44
· 3 commits to master since this release
279fdd9

Added generics for multi-machine states to be able to process view-state updates based on some common UI state
Migration:

Add common gesture/ui-state types

Was:

internal class MixedState : MultiMachineState<MixedGesture, MixedUiState>() {

}

Now:

internal class MixedState : MultiMachineState<MixedGesture, MixedUiState, Any, Any>() {

}

Change signature for gesture processing

Was:

override fun mapGesture(parent: MixedGesture, processor: GestureProcessor)  {

}

Now:

override fun mapGesture(parent: MixedGesture, processor: GestureProcessor<Any, Any>) {

}

Change signature for ui-state processing

Was:

override fun mapUiState(provider: UiStateProvider, changedKey: MachineKey<*, *>?): MixedUiState {

}

Now:

override fun mapUiState(provider: UiStateProvider<Any>, changedKey: MachineKey<*, out Any>?): MixedUiState {

}