Corbind logo
Follow Star

To add androidx swiperefreshlayout bindings, import corbind-swiperefreshlayout module:

dependencies {
    implementation("ru.ldralighieri.corbind:corbind-swiperefreshlayout:1.10.0")
}

List of extensions

Component Extension Description
SwipeRefreshLayout refreshes Called when a swipe gesture triggers a refresh. open or closed.

Example

swipe.refreshes() // Flow<Unit>
    .onEach { /* handle refresh events */ }
    .flowWithLifecycle(lifecycle)
    .launchIn(this)

More examples in source code