# 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)

*** ** * ** ***


```
@RequiresSchemaVersion(major = 1, minor = 0)
public final class ActionBuilders.LaunchAction implements 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 |
|---|
| `public final class https://developer.android.com/reference/androidx/wear/protolayout/ActionBuilders.LaunchAction.Builder` Builder for `https://developer.android.com/reference/androidx/wear/protolayout/ActionBuilders.LaunchAction`. |

| ### Public methods |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/wear/protolayout/ActionBuilders.AndroidActivity` | `https://developer.android.com/reference/androidx/wear/protolayout/ActionBuilders.LaunchAction#getAndroidActivity()()` Gets an action to launch an Android activity. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/wear/protolayout/ActionBuilders.LaunchAction#toString()()` |

## Public methods

### getAndroidActivity

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

```
public @Nullable ActionBuilders.AndroidActivity getAndroidActivity()
```

Gets an action to launch an Android activity.

### toString

```
public @NonNull String toString()
```