[android-components](../index.md) / [mozilla.components.support.ktx.android.net](index.md) / [sameSchemeAndHostAs](./same-scheme-and-host-as.md)

# sameSchemeAndHostAs

`fun <ERROR CLASS>.sameSchemeAndHostAs(other: <ERROR CLASS>): `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/support/ktx/src/main/java/mozilla/components/support/ktx/android/net/Uri.kt#L48)

Checks that Uri has the same scheme and host as [other](same-scheme-and-host-as.md#mozilla.components.support.ktx.android.net$sameSchemeAndHostAs(, )/other).

