Package-level declarations

Functions

Link copied to clipboard
fun WindowBottomSheet(show: Boolean, modifier: Modifier = Modifier, title: String? = null, startAction: @Composable () -> Unit? = null, endAction: @Composable () -> Unit? = null, backgroundColor: Color = BottomSheetDefaults.backgroundColor(), enableWindowDim: Boolean = true, cornerRadius: Dp = BottomSheetDefaults.cornerRadius, sheetMaxWidth: Dp = BottomSheetDefaults.maxWidth, onDismissRequest: () -> Unit? = null, onDismissFinished: () -> Unit? = null, outsideMargin: DpSize = BottomSheetDefaults.outsideMargin, insideMargin: DpSize = BottomSheetDefaults.insideMargin, defaultWindowInsetsPadding: Boolean = true, dragHandleColor: Color = BottomSheetDefaults.dragHandleColor(), allowDismiss: Boolean = true, enableNestedScroll: Boolean = true, content: @Composable () -> Unit)

A bottom sheet that slides up from the bottom of the screen, rendered at window level without Scaffold.

Link copied to clipboard
fun WindowCascadingListPopup(show: Boolean, entries: List<DropdownEntry>, onDismissRequest: () -> Unit, popupModifier: Modifier = Modifier, onDismissFinished: () -> Unit? = null, popupPositionProvider: PopupPositionProvider = ListPopupDefaults.DropdownPositionProvider, alignment: PopupPositionProvider.Align = PopupPositionProvider.Align.End, enableWindowDim: Boolean = true, maxHeight: Dp? = null, minWidth: Dp = 200.dp, dropdownColors: DropdownColors = DropdownDefaults.dropdownColors(), collapseOnSelection: Boolean = true)

A cascading list popup rendered at window level (as a Dialog) instead of inside a Scaffold. Otherwise behaves identically to io.github.suqi8.coui.kmp.overlay.OverlayCascadingListPopup.

Link copied to clipboard
fun WindowDialog(show: Boolean, modifier: Modifier = Modifier, title: String? = null, titleColor: Color = DialogDefaults.titleColor(), summary: String? = null, summaryColor: Color = DialogDefaults.summaryColor(), backgroundColor: Color = DialogDefaults.backgroundColor(), enableWindowDim: Boolean = true, onDismissRequest: () -> Unit? = null, onDismissFinished: () -> Unit? = null, outsideMargin: DpSize = DialogDefaults.outsideMargin, insideMargin: DpSize = DialogDefaults.insideMargin, defaultWindowInsetsPadding: Boolean = true, maxWidth: Dp = DialogDefaults.MaxWidth, largeScreen: Boolean? = null, cornerRadius: Dp? = null, content: @Composable () -> Unit)

A dialog with a title, a summary, and other contents, rendered at window level without Scaffold.

Link copied to clipboard
fun WindowListPopup(show: Boolean, popupModifier: Modifier = Modifier, popupPositionProvider: PopupPositionProvider = ListPopupDefaults.DropdownPositionProvider, alignment: PopupPositionProvider.Align = PopupPositionProvider.Align.Start, enableWindowDim: Boolean = false, onDismissRequest: () -> Unit? = null, onDismissFinished: () -> Unit? = null, maxHeight: Dp? = null, minWidth: Dp = ListPopupDefaults.MinWidth, preciseClickState: PreciseClickState? = null, content: @Composable () -> Unit)

A popup with a list of items, rendered at window level without Scaffold.

Link copied to clipboard
fun WindowLoadingDialog(show: Boolean, modifier: Modifier = Modifier, text: String? = null, textColor: Color = LoadingDialogDefaults.textColor(), spinnerColor: Color = LoadingDialogDefaults.spinnerColor(), backgroundColor: Color = DialogDefaults.backgroundColor(), enableWindowDim: Boolean = true, onDismissRequest: () -> Unit? = null, onDismissFinished: () -> Unit? = null)

A small always-centered loading dialog with a rotating spinner and an optional message, rendered at window level without Scaffold, matching the COUI rotating progress dialog (COUIRotatingDialogBuilder).

Link copied to clipboard
fun WindowSecurityDialog(show: Boolean, onConfirm: (dontRemind: Boolean) -> Unit, onCancel: () -> Unit, modifier: Modifier = Modifier, title: String? = null, summary: String? = null, statement: String? = null, statementLinkText: String? = null, onLinkClick: () -> Unit? = null, checkboxText: String? = SecurityDialogDefaults.CheckboxText, initialChecked: Boolean = false, confirmText: String = SecurityDialogDefaults.ConfirmText, cancelText: String = SecurityDialogDefaults.CancelText, titleColor: Color = DialogDefaults.titleColor(), summaryColor: Color = DialogDefaults.summaryColor(), backgroundColor: Color = DialogDefaults.backgroundColor(), colors: SecurityDialogColors = SecurityDialogDefaults.securityDialogColors(), enableWindowDim: Boolean = true, onDismissFinished: () -> Unit? = null)

A security statement dialog rendered at window level without Scaffold, matching the COUI security alert dialog (COUISecurityAlertDialogBuilder): a regular dialog extended with a statement paragraph (with an optional tappable link), a "don't remind me again" checkbox row and a cancel / confirm button bar.