I’m not sure I understand your question, you can pass *dependencies* from the activity to the…
Ash Davies
1

consider the following snippet as an example, I want to pass a callback to this dependency.

@Module class GoogleLoginModule {

@Provides
fun googleApiClient(activity: LoginActivity,
gso: GoogleSignInOptions): GoogleApiClient {
return GoogleApiClient.Builder(activity)
.enableAutoManage(activity, callback)
.addApi(Auth.GOOGLE_SIGN_IN_API, gso)
.build()
}
}
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.