android-components / mozilla.components.feature.downloads / SimpleDownloadDialogFragment / <init>

# <init>

`SimpleDownloadDialogFragment()`

A confirmation dialog to be called before a download is triggered. Meant to be used in collaboration with DownloadsFeature

SimpleDownloadDialogFragment is the default dialog use by DownloadsFeature if you don't provide a value. It is composed by a title, a negative and a positive bottoms. When the positive button is clicked the download it triggered.

Consumers must implement the DownloadDialogListener interface on their Activity/Fragment to ensure that they will get notified on positiveButtonClick and negativeButtonClick events after activity/fragment is recreated.

If you are using this class from a android.support.v4.app.Fragment you must use a childFragmentManager or you will get a ClassCastException.