I\'ve done my Android projects MainActivity by means of the MVP pattern. So in my MainPresenter I want to inject a dynamic String, which then shall populate a TextView for insta
You're providing a DynamicString
while expecting a regular String
in the constructor. You should use DynamicString
there as well:
class MyMainPresenter @Inject constructor(
@StringForTextView dynamicString: DynamicString
)
Also, you might want to hols on to that injected value by making it a property with val
.