Jetpack Compose has a ClipboardManager, allowing us to get or set the value on the clipboard. I notice however that getText() does not return a State, or any observable value.
@Composable fun ClipboardContents() {
val cb = LocalClipboardManager.current
Text(cb.getText())
}
How can I make sure that my Composable function responds to changes in the Clipboard?