[android-components](../../index.md) / [mozilla.components.feature.pwa.feature](../index.md) / [WebAppHideToolbarFeature](index.md) / [onUrlChanged](./on-url-changed.md)

# onUrlChanged

`fun onUrlChanged(session: `[`Session`](../../mozilla.components.browser.session/-session/index.md)`, url: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/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/pwa/src/main/java/mozilla/components/feature/pwa/feature/WebAppHideToolbarFeature.kt#L50)

Overrides [Observer.onUrlChanged](../../mozilla.components.browser.session/-session/-observer/on-url-changed.md)

Hides or reveals the toolbar when the session navigates to a new URL.

