[android-components](../../index.md) / [mozilla.components.feature.session](../index.md) / [SwipeRefreshFeature](index.md) / [onLoadingStateChanged](./on-loading-state-changed.md)

# onLoadingStateChanged

`fun onLoadingStateChanged(session: `[`Session`](../../mozilla.components.browser.session/-session/index.md)`, loading: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/feature/session/src/main/java/mozilla/components/feature/session/SwipeRefreshFeature.kt#L62)

Overrides [Observer.onLoadingStateChanged](../../mozilla.components.browser.session/-session/-observer/on-loading-state-changed.md)

Called when the current session starts or stops refreshing.

