return generic style
This commit is contained in:
parent
1a63c13680
commit
e97d8dcafb
|
|
@ -9,8 +9,11 @@ import ru.touchin.roboswag.mvi_arch.marker.ViewState
|
|||
/**
|
||||
* Interface with the main MVI methods and fields
|
||||
*/
|
||||
interface IMvi<NavArgs : Parcelable, Action : ViewAction, State : ViewState, VM>
|
||||
where VM : MviViewModel<NavArgs, Action, State> {
|
||||
interface IMvi<NavArgs, Action, State, VM>
|
||||
where NavArgs : Parcelable,
|
||||
State : ViewState,
|
||||
Action : ViewAction,
|
||||
VM : MviViewModel<NavArgs, Action, State> {
|
||||
|
||||
/**
|
||||
* Use [viewModel] extension to get an instance of your view model class.
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ import javax.inject.Inject
|
|||
*/
|
||||
abstract class MviFragment<NavArgs, State, Action, VM>(
|
||||
@LayoutRes layout: Int
|
||||
) : BaseFragment<BaseActivity>(layout), IMvi<NavArgs, State, Action, VM>
|
||||
) : BaseFragment<BaseActivity>(layout), IMvi<NavArgs, Action, State, VM>
|
||||
where NavArgs : Parcelable,
|
||||
State : ViewState,
|
||||
Action : ViewAction,
|
||||
|
|
|
|||
Loading…
Reference in New Issue