show

fun show(context: Context, title: String, message: String, primary: String, secondary: String? = null, onPrimary: () -> Unit? = null, onSecondary: () -> Unit? = null)(source)

Shows an overlay chip with title, message, and action buttons.

Parameters

context

Application context

title

Title text to display

message

Message text to display

primary

Primary button text (e.g., "Take a break")

secondary

Optional secondary button text (e.g., "Keep scrolling")

onPrimary

Callback when primary button is clicked

onSecondary

Callback when secondary button is clicked