# Package-level declarations

## Types

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

Type alias for alert dialog button callbacks.

## Functions

createAlertDialogTemplate
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

Creates an AlertDialog.Builder template with configurable title and buttons. This provides a simplified API for creating alert dialogs with positive, negative, and neutral buttons.

createAlertDialogTemplateWithResources
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
createCustomViewAlertDialog
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
createCustomViewAlertDialogWithResources
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
createSimpleTextAlertDialog
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
setDismissChecker
Link copied to clipboard
inline fun AlertDialog . setDismissChecker (noinline checker: () -> Boolean ): AlertDialog