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


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


<h2 id="firsturiornull">firstUriOrNull</h2>

<div class='sourceset sourceset-android'>Android</div>


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


Returns the first non-null `Uri` from the list of `ClipData.Item`s in this `ClipEntry`.

ClipEntry can contain single or multiple `ClipData.Item`s. This function is useful when you are
only interested in processing just a single `Uri` item inside the `ClipEntry`.

It's advised that you consider checking all the items inside `ClipEntry.clipData` to thoroughly
process a given `ClipEntry`.