Last active
February 20, 2021 09:03
-
-
Save arnaudgiuliani/157896d6ab7a7b5dde35edf8e795e05e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyAdapter(val presenter : MyPresenter) | |
module { | |
scope<MyActivity> { | |
// get MyPresenter instance from current scope | |
scoped { MyAdapter(get()) } | |
scoped { MyPresenter() } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment