# ActionBuilders.LoadAction.Builder

# ActionBuilders.LoadAction.Builder

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.Builder)  
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.Builder "View this page in Java")

<br />

```
class ActionBuilders.LoadAction.Builder
```

<br />

*** ** * ** ***

Builder for[LoadAction](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ActionBuilders.LoadAction).

## Summary

|                                                                                                                             ### Public constructors                                                                                                                              |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ActionBuilders.LoadAction.Builder#Builder())`()` Creates an instance of[Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ActionBuilders.LoadAction.Builder). |

|                                                              ### Public functions                                                               |
|-------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [ActionBuilders.LoadAction](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ActionBuilders.LoadAction)                 | [build](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ActionBuilders.LoadAction.Builder#build())`()` Builds an instance from accumulated values.                                                                                                                                                                                                                                                                                                                                                                    |
| [ActionBuilders.LoadAction.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ActionBuilders.LoadAction.Builder) | `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 0)` [setRequestState](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ActionBuilders.LoadAction.Builder#setRequestState(androidx.wear.protolayout.StateBuilders.State))`(requestState: `[StateBuilders.State](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/StateBuilders.State)`)` Sets the state to load the next layout with. |

## Public constructors

### Builder

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

```
Builder()
```

Creates an instance of[Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ActionBuilders.LoadAction.Builder).  

## Public functions

### build

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

```
fun build(): ActionBuilders.LoadAction
```

Builds an instance from accumulated values.  

### setRequestState

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

```
@RequiresSchemaVersion(major = 1, minor = 0)
fun setRequestState(requestState: StateBuilders.State): ActionBuilders.LoadAction.Builder
```

Sets 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).