OnPrimaryClipChangedListener
interface OnPrimaryClipChangedListener
android.content.ClipboardManager.OnPrimaryClipChangedListener |
Defines a listener callback that is invoked when the primary clip on the clipboard changes. Objects that want to register a listener call addPrimaryClipChangedListener()
with an object that implements OnPrimaryClipChangedListener.
Summary
Public methods | |
---|---|
abstract Unit |
Callback that is invoked by |
Public methods
onPrimaryClipChanged
abstract fun onPrimaryClipChanged(): Unit
Callback that is invoked by android.content.ClipboardManager
when the primary clip changes.
This is called when the result of ClipDescription#getClassificationStatus()
changes, as well as when new clip data is set. So in cases where text classification is performed, this callback may be invoked multiple times for the same clip.