Package dev.inmo.micro_utils.android.alerts.common

Types

Link copied to clipboard
typealias AlertDialogCallback = (DialogInterface) -> Unit

Functions

Link copied to clipboard
inline fun Context.createAlertDialogTemplate(    title: String? = null,     positivePair: Pair<String, AlertDialogCallback?>? = null,     neutralPair: Pair<String, AlertDialogCallback?>? = null,     negativePair: Pair<String, AlertDialogCallback?>? = null): AlertDialog.Builder
Link copied to clipboard
inline fun Context.createAlertDialogTemplateWithResources(    title: Int? = null,     positivePair: Pair<Int, AlertDialogCallback?>? = null,     neutralPair: Pair<Int, AlertDialogCallback?>? = null,     negativePair: Pair<Int, AlertDialogCallback?>? = null): AlertDialog.Builder
Link copied to clipboard
inline fun <T : View> Context.createCustomViewAlertDialog(    title: String? = null,     positivePair: Pair<String, AlertDialogCallback?>? = null,     neutralPair: Pair<String, AlertDialogCallback?>? = null,     negativePair: Pair<String, AlertDialogCallback?>? = null,     show: Boolean = true,     viewCreator: (Context) -> T): AlertDialog
Link copied to clipboard
inline fun <T : View> Context.createCustomViewAlertDialogWithResources(    title: Int? = null,     positivePair: Pair<Int, AlertDialogCallback?>? = null,     neutralPair: Pair<Int, AlertDialogCallback?>? = null,     negativePair: Pair<Int, AlertDialogCallback?>? = null,     show: Boolean = true,     viewCreator: (Context) -> T): AlertDialog
Link copied to clipboard
inline fun Context.createSimpleTextAlertDialog(    @StringRes text: Int,     @StringRes title: Int? = null,     positivePair: Pair<Int, AlertDialogCallback?>? = null,     neutralPair: Pair<Int, AlertDialogCallback?>? = null,     negativePair: Pair<Int, AlertDialogCallback?>? = null,     show: Boolean = true): AlertDialog
inline fun Context.createSimpleTextAlertDialog(    text: String,     title: String? = null,     positivePair: Pair<String, AlertDialogCallback?>? = null,     neutralPair: Pair<String, AlertDialogCallback?>? = null,     negativePair: Pair<String, AlertDialogCallback?>? = null,     show: Boolean = true): AlertDialog
Link copied to clipboard
inline fun AlertDialog.setDismissChecker(noinline checker: () -> Boolean): AlertDialog