You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for the next release 1.0.0, we are working on an interesting Android feature. The scopedWith() function will help you bind a lyfecycleOwner component (Activity, Fragment, Service ...) to a list of module paths. When the component receives a ON_DESTROYED signal, it will drop instances from given modules.
val appModule = module("org.koin.sample"){
single { Presenter() }
}
classDetailActivity : AppCompatActivity() {
overrideval presenter:Presenter by inject()
overridefunonCreate(savedInstanceState:Bundle?) {
super.onCreate(savedInstanceState)
// Will drop Presenter instance after ON_DESTROYED signal
scopedWith("org.koin.sample")
}
This is interesting as it will help you bind Koin components on Android components lifecycle.
This feature is available in koin-android-scope version 1.0.0-alpha-16
The text was updated successfully, but these errors were encountered:
arnaudgiuliani
changed the title
Introducing Android scopeWith & new Koin Android projects
Introducing Android scopedWith & new Koin Android projects
Jun 8, 2018
arnaudgiuliani
changed the title
Introducing Android scopedWith & new Koin Android projects
Introducing scopedWith feature & new Android projects
Jun 8, 2018
arnaudgiuliani
changed the title
Introducing scopedWith feature & new Android projects
[Koin 1.0] - Introducing scopedWith feature & new Android projects
Jun 8, 2018
arnaudgiuliani
changed the title
[Koin 1.0] - Introducing scopedWith feature & new Android projects
[Koin 1.0] - Introducing scopedWith feature & renaming for Android projects
Jun 8, 2018
arnaudgiuliani
changed the title
[Koin 1.0] - Introducing scopedWith feature & renaming for Android projects
[Koin 1.0] - Android scopedWith & projects renaming
Jun 8, 2018
arnaudgiuliani
changed the title
[Koin 1.0] - Android scopedWith & projects renaming
[Koin 1.0] - introducing new feature: Android scopedWith
Jun 9, 2018
arnaudgiuliani
changed the title
[Koin 1.0] - introducing new feature: Android scopedWith
[Koin 1.0] - introducing new Android feature - scopedWith
Jun 9, 2018
Hello all,
for the next release 1.0.0, we are working on an interesting Android feature. The
scopedWith()
function will help you bind a lyfecycleOwner component (Activity, Fragment, Service ...) to a list of module paths. When the component receives aON_DESTROYED
signal, it will drop instances from given modules.This is interesting as it will help you bind Koin components on Android components lifecycle.
This feature is available in
koin-android-scope
version1.0.0-alpha-16
The text was updated successfully, but these errors were encountered: