[android-components](../../index.md) / [mozilla.components.ui.doorhanger](../index.md) / [DoorhangerPrompt](index.md) / [createDoorhanger](./create-doorhanger.md)

# createDoorhanger

`fun createDoorhanger(context: `[`Context`](https://developer.android.com/reference/android/content/Context.html)`): `[`Doorhanger`](../-doorhanger/index.md) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/ui/doorhanger/src/main/java/mozilla/components/ui/doorhanger/DoorhangerPrompt.kt#L41)

Creates a [Doorhanger](../-doorhanger/index.md) from the [DoorhangerPrompt](index.md) configuration.

