gh-pages / com.nextfaze.devfun.internal.android / BaseDialogFragment
BaseDialogFragment
abstract class BaseDialogFragment : AppCompatDialogFragment
(source)
Constructors
Name |
Summary |
<init> |
BaseDialogFragment() |
Functions
Name |
Summary |
onCreate |
open fun onCreate(savedInstanceState: Bundle ?): Unit |
onDestroy |
open fun onDestroy(): Unit |
onDestroyView |
open fun onDestroyView(): Unit |
onDismiss |
open fun onDismiss(dialog: DialogInterface ): Unit |
onPerformDismiss |
open fun onPerformDismiss(): Unit We will not get an onDismiss callback if a dialog fragment is opened on an activity that is then finished while the dialog is open. However we generally want to clean up if we are destroyed, so worst-case we perform the dismiss callback then if it hasn’t already happened. |
Companion Object Functions
Name |
Summary |
dismiss |
fun <T : DialogFragment> dismiss(activity: FragmentActivity): Boolean |
show |
fun <T : DialogFragment> show(activity: FragmentActivity, obtain: () -> T ): T |
showNow |
fun <T : DialogFragment> showNow(activity: FragmentActivity, obtain: () -> T ): T |
Extension Properties
Extension Functions
Name |
Summary |
show |
fun DialogFragment.show(fragmentManager: FragmentManager): Unit |
showNow |
fun DialogFragment.showNow(fragmentManager: FragmentManager): Unit |