我可以在 Java 活动中使用 Koin 的 currentScope 吗?
Can I use Koin's currentScope in Java Activities?
我想在 Java.
中使用 currentScope (https://github.com/InsertKoinIO/koin/search?q=currentscope&unscoped_q=currentscope)
但我似乎无法 import org.koin.android.scope.currentScope
Java activity。
有没有人有在 Java 活动中使用 Activity 范围的经验?
你可以这样使用
org.koin.android.scope.LifecycleOwnerExtKt.getCurrentScope()
我想在 Java.
中使用 currentScope (https://github.com/InsertKoinIO/koin/search?q=currentscope&unscoped_q=currentscope)但我似乎无法 import org.koin.android.scope.currentScope
Java activity。
有没有人有在 Java 活动中使用 Activity 范围的经验?
你可以这样使用
org.koin.android.scope.LifecycleOwnerExtKt.getCurrentScope()