[android-components](../../index.md) / [mozilla.components.support.images](../index.md) / [CancelOnDetach](index.md) / [onViewDetachedFromWindow](./on-view-detached-from-window.md)

# onViewDetachedFromWindow

`fun onViewDetachedFromWindow(v: <ERROR CLASS>?): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/support/images/src/main/java/mozilla/components/support/images/CancelOnDetach.kt#L17)