To add androidx core bindings, import corbind-core module:
dependencies {
implementation("ru.ldralighieri.corbind:corbind-core:1.12.1")
}| Component | Extension | Description |
|---|---|---|
| NestedScrollView | scrollChangeEvents |
Called when the scroll position of a view changes. |
scrollView.scrollChangeEvents() // Flow<ViewScrollChangeEvent>
.onEach { /* handle scroll change events */ }
.flowWithLifecycle(lifecycle)
.launchIn(lifecycleScope) // lifecycle-runtime-ktxMore examples in source code