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")
on Primary
Callback when primary button is clicked
on Secondary
Callback when secondary button is clicked