---
title: "createFromAutofillValue"
description: "Creates a [FillableData] from the platform [AutofillValue] type."
type: "function"
---

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


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


```kotlin
fun FillableData.Companion.createFromAutofillValue(autofillValue: AutofillValue): FillableData?
```


Creates a `FillableData` from the platform `AutofillValue` type.

#### Parameters

| | |
| --- | --- |
| autofillValue | The platform autofill value to create the `FillableData` from. |


#### Returns

| | |
| --- | --- |
|  | A `FillableData` object containing the platform autofill data, or `null` if the platform version is lower than `Build.VERSION_CODES.O`. |




