# ActionBuilders.LaunchAction

# ActionBuilders.LaunchAction

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

<br />

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

<br />

*** ** * ** ***

An action used to launch another activity on the system. This can hold multiple different underlying action types, which will be picked based on what the underlying runtime believes to be suitable.

## Summary

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

|                                                             ### Public functions                                                             |
|----------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [ActionBuilders.AndroidActivity](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ActionBuilders.AndroidActivity)`?` | [getAndroidActivity](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ActionBuilders.LaunchAction#getAndroidActivity())`()` Gets an action to launch an Android activity. |
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)                                                            | [toString](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ActionBuilders.LaunchAction#toString())`()`                                                                   |

## Public functions

### getAndroidActivity

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

```
fun getAndroidActivity(): ActionBuilders.AndroidActivity?
```

Gets an action to launch an Android activity.  

### toString

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