[android-components](../../index.md) / [mozilla.components.ui.doorhanger](../index.md) / [Doorhanger](index.md) / [&lt;init&gt;](./-init-.md)

# &lt;init&gt;

`Doorhanger(view: `[`View`](https://developer.android.com/reference/android/view/View.html)`, onDismiss: () -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)` = null)`

A [Doorhanger](index.md) is a floating heads-up popup that can be anchored to a view. They are presented to notify the user
of something that is important.

