Package-level declarations

Types

Link copied to clipboard
annotation class ActivityComponent

Mark it as a type to inject into ComponentActivity.

Link copied to clipboard
annotation class ActivityContext

Get the Activity's Context.

Link copied to clipboard

Get a Activity's CoroutineScope that the same as lifecycleScope.

Functions

Link copied to clipboard
inline fun <VM : ViewModel> ComponentActivity.injectViewModels(qualifier: Any? = null, noinline extrasProducer: () -> CreationExtras? = null): Lazy<VM>

Returns a Lazy delegate to access the Activity's ViewModel provided by Koject

Link copied to clipboard
inline fun <VM : ViewModel> ComponentActivity.lazyViewModels(qualifier: Any? = null, noinline extrasProducer: () -> CreationExtras? = null): Lazy<VM>

Returns a Lazy delegate to access the Activity's ViewModel provided by Koject