---
title: "toAutofillValue"
description: "Retrieves the underlying platform [AutofillValue] from the [FillableData]."
type: "function"
---

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


<a id='references'></a>
<div class='sourceset sourceset-android'>Android</div>


```kotlin
fun FillableData.toAutofillValue(): AutofillValue?
```


Retrieves the underlying platform `AutofillValue` from the `FillableData`.

#### Returns

| | |
| --- | --- |
|  | The platform `AutofillValue`, or `null` if the `FillableData` is not an instance of `AndroidFillableData` or the platform version is lower than `Build.VERSION_CODES.O`. |




