[android-components](../../index.md) / [mozilla.components.feature.downloads](../index.md) / [SimpleDownloadDialogFragment](index.md) / [newInstance](./new-instance.md)

# newInstance

`fun newInstance(@StringRes dialogTitleText: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` = R.string.mozac_feature_downloads_dialog_title2, @StringRes downloadButtonText: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` = R.string.mozac_feature_downloads_dialog_download, @StyleRes themeResId: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` = 0, promptsStyling: `[`PromptsStyling`](../-downloads-feature/-prompts-styling/index.md)`? = null): `[`SimpleDownloadDialogFragment`](index.md) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/feature/downloads/src/main/java/mozilla/components/feature/downloads/SimpleDownloadDialogFragment.kt#L152)

A builder method for creating a [SimpleDownloadDialogFragment](index.md)

