# ClipEntry

Artifact: [androidx.compose.ui:ui](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/platform/+class:androidx.compose.ui.platform.ClipEntry) Added in [1.7.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.7.0) Common/AllAndroid/JVM
- Cmn

  ```
  class ClipEntry
  ```

*** ** * ** ***

Platform specific protocol that expresses an item in the native Clipboard.

## Summary

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/ClipEntry#ClipEntry(android.content.ClipData)(clipData: https://developer.android.com/reference/android/content/ClipData.html)` | android |

| ### Public properties |
|---|---|---|
| `https://developer.android.com/reference/android/content/ClipData.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/ClipEntry#clipData()` | android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/ClipMetadata` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/ClipEntry#clipMetadata()` Returns a `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/ClipMetadata` which describes the contents of this `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/ClipEntry`. | Cmn android |

| ### Extension functions |
|---|---|---|
| `https://developer.android.com/reference/android/net/Uri.html?` | `@https://developer.android.com/reference/kotlin/androidx/compose/ui/ExperimentalComposeUiApi https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/ClipEntry.https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/ClipEntry#(androidx.compose.ui.platform.ClipEntry).firstUriOrNull()()` Returns the first non-null `https://developer.android.com/reference/android/net/Uri.html` from the list of `https://developer.android.com/reference/android/content/ClipData.Item.html`s in this `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/ClipEntry`. | android |

## Public constructors

### ClipEntry

android Added in [1.7.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.7.0)

```
ClipEntry(clipData: ClipData)
```

## Public properties

### clipData

android Added in [1.7.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.7.0)

```
val clipData: ClipData
```

### clipMetadata

Cmn android Added in [1.7.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.7.0)

```
val clipMetadata: ClipMetadata
```

Returns a `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/ClipMetadata` which describes the contents of this `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/ClipEntry`. This is an ideal way to check whether to accept or reject what may be pasted from the clipboard without explicitly reading the content.

Calling this function does not trigger any content access warnings on any platform.

## Extension functions

### ClipEntry.firstUriOrNull

android Artifact: [androidx.compose.ui:ui](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/platform/ClipboardExtensions.android.kt+function:firstUriOrNull)

```
@ExperimentalComposeUiApi
fun ClipEntry.firstUriOrNull(): Uri?
```

Returns the first non-null `https://developer.android.com/reference/android/net/Uri.html` from the list of `https://developer.android.com/reference/android/content/ClipData.Item.html`s in this `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/ClipEntry`.

ClipEntry can contain single or multiple `https://developer.android.com/reference/android/content/ClipData.Item.html`s. This function is useful when you are only interested in processing just a single `https://developer.android.com/reference/android/net/Uri.html` item inside the `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/ClipEntry`.

It's advised that you consider checking all the items inside `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/ClipEntry#clipData()` to thoroughly process a given `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/ClipEntry`.