How to inject Interface with Hilt in Android
In my application I want use interface in constructor of one class and for this I write below codes :
Interface codes :
interface ShopContracts {
interface View {
fun showAll(notes: List)
}
interface Presenter : BasePresenter {
fun loadAll()
}
}
I want use this interface in this below such as below
class ShopPresenter @Inject constructor(private val repository: ShopRepository, private val view: ShopContracts.View) :...