CopyToClipboard
data class CopyToClipboard(val label: UiText, val text: UiText, val successMessage: UiText? = null) : AboutItemAction(source)
Copies text to the system clipboard under label.
The text travels with the action so the clipboard receives exactly what the item displays, instead of a second lookup that could resolve under a different configuration. Both are UiText rather than String so a row whose value is a string resource, such as the application name, is as copyable as one holding a formatted value.