Skip to content

Instantly share code, notes, and snippets.

@PShchahelski
Created August 28, 2021 10:33
Show Gist options
  • Save PShchahelski/c55e387caf0970e03a804837a429d510 to your computer and use it in GitHub Desktop.
Save PShchahelski/c55e387caf0970e03a804837a429d510 to your computer and use it in GitHub Desktop.
@Component
interface Component {
@Component.Factory
interface Factory {
fun create(
@BindsInstance dialogId: DialogId,
): Component
}
...
}
@InjectViewState
class Presenter @Inject internal constructor(
private val dialogId: DialogId,
private val repository: Repository,
) : MvpPresenter<View>()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment