package robertapikyan.com.abstractmvp.presentation.view /** * Base view action, * invoke method will be called only if view is attached */ interface IViewAction { fun invoke(view: V) companion object { fun fromLambda(action: (V) -> Unit) = object : IViewAction { override fun invoke(view: V) = action.invoke(view) } } }