Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Ctors](https://developer.android.com/reference/android/text/ClipboardManager#pubctors) \| [Methods](https://developer.android.com/reference/android/text/ClipboardManager#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/text/ClipboardManager#inhmethods)

# ClipboardManager

*** ** * ** ***

` public abstract class ClipboardManager `   
` extends https://developer.android.com/reference/java/lang/Object ` ` `

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.text.ClipboardManager |

Known direct subclasses [ClipboardManager](https://developer.android.com/reference/android/content/ClipboardManager) [ClipboardManager](https://developer.android.com/reference/android/content/ClipboardManager) Interface to the clipboard service, for placing and retrieving text in the global clipboard.   

*** ** * ** ***

<br />

**This class was deprecated in API level 11.**   

Old text-only interface to the clipboard. See `https://developer.android.com/reference/android/content/ClipboardManager` for the modern API.

## Summary

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/text/ClipboardManager#ClipboardManager()() ` |

| ### Public methods ||
|---|---|
| ` abstract https://developer.android.com/reference/java/lang/CharSequence` | ` https://developer.android.com/reference/android/text/ClipboardManager#getText()() ` Returns the text on the clipboard. |
| ` abstract boolean` | ` https://developer.android.com/reference/android/text/ClipboardManager#hasText()() ` Returns true if the clipboard contains text; false otherwise. |
| ` abstract void` | ` https://developer.android.com/reference/android/text/ClipboardManager#setText(java.lang.CharSequence)(https://developer.android.com/reference/java/lang/CharSequence text) ` Sets the contents of the clipboard to the specified text. |

### Inherited methods

From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.

## Public constructors

### ClipboardManager

```
public ClipboardManager ()
```

<br />

<br />

## Public methods

### getText

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

```
public abstract CharSequence getText ()
```

Returns the text on the clipboard. It will eventually be possible to store types other than text too, in which case this will return null if the type cannot be coerced to text.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/CharSequence` | <br /> |

### hasText

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

```
public abstract boolean hasText ()
```

Returns true if the clipboard contains text; false otherwise.

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

### setText

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

```
public abstract void setText (CharSequence text)
```

Sets the contents of the clipboard to the specified text.

<br />

| Parameters ||
|---|---|
| `text` | `CharSequence` <br /> |