Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

# ClipboardManager.OnPrimaryClipChangedListener

*** ** * ** ***

` public static interface ClipboardManager.OnPrimaryClipChangedListener `   
` `

|---|
| android.content.ClipboardManager.OnPrimaryClipChangedListener |

<br />

*** ** * ** ***

Defines a listener callback that is invoked when the primary clip on the clipboard changes. Objects that want to register a listener call `https://developer.android.com/reference/android/content/ClipboardManager#addPrimaryClipChangedListener(android.content.ClipboardManager.OnPrimaryClipChangedListener)` with an object that implements OnPrimaryClipChangedListener.

## Summary

| ### Public methods ||
|---|---|
| ` abstract void` | ` https://developer.android.com/reference/android/content/ClipboardManager.OnPrimaryClipChangedListener#onPrimaryClipChanged()() ` Callback that is invoked by `https://developer.android.com/reference/android/content/ClipboardManager` when the primary clip changes. |

## Public methods

### onPrimaryClipChanged

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract void onPrimaryClipChanged ()
```

Callback that is invoked by `https://developer.android.com/reference/android/content/ClipboardManager` when the primary clip changes.

This is called when the result of `https://developer.android.com/reference/android/content/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.

<br />