Package-level declarations

Functions

Link copied to clipboard
inline fun AlertDialog.Builder.negativeButton(text: String = "CANCEL", crossinline handleClick: (i: Int) -> Unit = {})

Helper method to create negative button for Alert dialog and listen to the button's click

Link copied to clipboard
inline fun AlertDialog.Builder.neutralButton(text: String, crossinline handleClick: (i: Int) -> Unit = {})

Helper method to create neutral button for Alert dialog and listen to the button's click

Link copied to clipboard
inline fun AlertDialog.Builder.positiveButton(text: String = "OK", crossinline handleClick: (i: Int) -> Unit = {})

Helper method to create positive button for Alert dialog and listen to the button's click

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Dialog.setCustomText(resId: Int, message: String)
Link copied to clipboard
fun Dialog.setCustomTitle(resId: Int, title: String)
Link copied to clipboard

Should be called in the onCreateView(inflater, container, savedInstanceState) method

Link copied to clipboard
inline fun Context.showDialog(themeId: Int = 0, cancelable: Boolean = false, cancelableTouchOutside: Boolean = false, builderFunction: AlertDialog.Builder.() -> Any)

Shows AlertDialog

Link copied to clipboard

Make the background transparent of the dialog window