Window Loading Dialog
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).
Parameters
show
Whether the WindowLoadingDialog is shown.
modifier
The modifier to be applied to the WindowLoadingDialog.
text
The optional message shown below the spinner.
text Color
The color of the message text.
spinner Color
The color of the spinner.
background Color
The background color of the loading card.
enable Window Dim
Whether to enable window dimming when the dialog is shown.
on Dismiss Request
Will be called when the user tries to dismiss the dialog by clicking outside or pressing the back button. When null (default), the dialog cannot be dismissed by the user.
on Dismiss Finished
The callback when the WindowLoadingDialog is completely dismissed.