# ActionBuilders.LoadAction

# ActionBuilders.LoadAction

Artifact:[androidx.wear.protolayout:protolayout](https://developer.android.com/jetpack/androidx/releases/wear-protolayout)  
[View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/ActionBuilders.java+class:androidx.wear.protolayout.ActionBuilders.LoadAction)  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/wear/protolayout/ActionBuilders.LoadAction "View this page in Java")

<br />

```
@RequiresSchemaVersion(major = 1, minor = 0)
class ActionBuilders.LoadAction : ActionBuilders.Action
```

<br />

*** ** * ** ***

An action used to load (or reload) the layout contents.

## Summary

|                                                                                                                                   ### Nested types                                                                                                                                   |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `class `[ActionBuilders.LoadAction.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ActionBuilders.LoadAction.Builder) Builder for[LoadAction](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ActionBuilders.LoadAction). |

|                                                  ### Public functions                                                  |
|------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [StateBuilders.State](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/StateBuilders.State)`?` | [getRequestState](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ActionBuilders.LoadAction#getRequestState())`()` Gets the state to load the next layout with. |
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)                                      | [toString](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ActionBuilders.LoadAction#toString())`()`                                                            |

## Public functions

### getRequestState

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)  

```
fun getRequestState(): StateBuilders.State?
```

Gets the state to load the next layout with. This will be included in the layout request sent after this action is invoked by a[androidx.wear.protolayout.ModifiersBuilders.Clickable](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Clickable).  

### toString

```
fun toString(): String
```