<div class='type'>Interface</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>


> **Deprecated** Use Clipboard instead, which supports suspend functions.


```kotlin
interface ClipboardManager
```


Interface for managing the Clipboard.


## Properties

<div class='sourceset sourceset-common'>Common</div>


```kotlin
val nativeClipboard: NativeClipboard
```


Returns the native clipboard that exposes the full functionality of platform clipboard.



## Functions



<h2 id="settext-annotatedstring">setText</h2>

```kotlin
fun setText(annotatedString: AnnotatedString)
```


This method put the text into the Clipboard.

#### Parameters

| | |
| --- | --- |
| annotatedString | The `AnnotatedString` to be put into Clipboard. |





<hr class="docs-overload-divider">


<h2 id="gettext">getText</h2>

```kotlin
fun getText(): AnnotatedString?
```


This method get the text from the Clipboard.

#### Returns

| | |
| --- | --- |
|  | The text in the Clipboard. It could be null due to 2 reasons: 1. Clipboard is empty; 2. Cannot convert the `CharSequence` text in Clipboard to `AnnotatedString`. |





<hr class="docs-overload-divider">


<h2 id="hastext">hasText</h2>

```kotlin
fun hasText(): Boolean
```


This method returns true if there is a text in the Clipboard, false otherwise.




<hr class="docs-overload-divider">


<h2 id="getclip">getClip</h2>

```kotlin
fun getClip(): ClipEntry?
```


Returns the clipboard entry that's provided by the platform's ClipboardManager.

This item can include arbitrary content like images, videos, or any data that may be provided
through a mediator. Returned entry may contain multiple items with different types.

It's safe to call this function without triggering Clipboard access warnings on mobile
platforms.




<hr class="docs-overload-divider">


<h2 id="setclip-clipentry">setClip</h2>

```kotlin
fun setClip(clipEntry: ClipEntry?) = Unit
```


Puts the given `clipEntry` in platform's ClipboardManager.

#### Parameters

| | |
| --- | --- |
| clipEntry | Platform specific clip object that either holds data or links to it. Pass null to clear the clipboard. |