---
title: "copyText"
description: "Action to copy the text to the clipboard."
type: "function"
---

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


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
fun SemanticsPropertyReceiver.copyText(label: String? = null, action: (() -> Boolean)?)
```


Action to copy the text to the clipboard.

#### Parameters

| | |
| --- | --- |
| label | Optional label for this action. |
| action | Action to be performed when the `SemanticsActions.CopyText` is called. |




