---
title: "actionStartActivity"
description: "Creates an [Action] that launches the [Activity] specified by the given [ComponentName]."
type: "function"
---

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


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


```kotlin
public fun actionStartActivity(
    componentName: ComponentName,
    parameters: ActionParameters = actionParametersOf(),
): Action
```


Creates an `Action` that launches the `Activity` specified by the given `ComponentName`.

#### Parameters

| | |
| --- | --- |
| componentName | component of the activity to launch |
| parameters | the parameters associated with the action. Parameter values will be added to the activity intent, keyed by the parameter key name string. |




<div class='sourceset sourceset-android'>Android</div>


```kotlin
@ExperimentalGlanceApi
public fun actionStartActivity(
    componentName: ComponentName,
    parameters: ActionParameters = actionParametersOf(),
    activityOptions: Bundle? = null,
): Action
```


Creates an `Action` that launches the `Activity` specified by the given `ComponentName`.

#### Parameters

| | |
| --- | --- |
| componentName | component of the activity to launch |
| parameters | the parameters associated with the action. Parameter values will be added to the activity intent, keyed by the parameter key name string. |
| activityOptions | Additional options built from an `android.app.ActivityOptions` to apply to an activity start. |




<div class='sourceset sourceset-android'>Android</div>


```kotlin
public fun <T : Activity> actionStartActivity(
    activity: Class<T>,
    parameters: ActionParameters = actionParametersOf(),
): Action
```


Creates an `Action` that launches the specified `Activity` when triggered.

#### Parameters

| | |
| --- | --- |
| activity | class of the activity to launch |
| parameters | the parameters associated with the action. Parameter values will be added to the activity intent, keyed by the parameter key name string. |




<div class='sourceset sourceset-android'>Android</div>


```kotlin
@ExperimentalGlanceApi
public fun <T : Activity> actionStartActivity(
    activity: Class<T>,
    parameters: ActionParameters = actionParametersOf(),
    activityOptions: Bundle? = null,
): Action
```


Creates an `Action` that launches the specified `Activity` when triggered.

#### Parameters

| | |
| --- | --- |
| activity | class of the activity to launch |
| parameters | the parameters associated with the action. Parameter values will be added to the activity intent, keyed by the parameter key name string. |
| activityOptions | Additional options built from an `android.app.ActivityOptions` to apply to an activity start. |




<div class='sourceset sourceset-android'>Android</div>


```kotlin
public inline fun <reified T : Activity> actionStartActivity(
    parameters: ActionParameters = actionParametersOf()
): Action
```


Creates an `Action` that launches the specified `Activity` when triggered.

#### Parameters

| | |
| --- | --- |
| parameters | the parameters associated with the action. Parameter values will be added to the activity intent, keyed by the parameter key name string. |




<div class='sourceset sourceset-android'>Android</div>


```kotlin
@ExperimentalGlanceApi
public inline fun <reified T : Activity> actionStartActivity(
    parameters: ActionParameters = actionParametersOf(),
    activityOptions: Bundle? = null,
): Action
```


Creates an `Action` that launches the specified `Activity` when triggered.

#### Parameters

| | |
| --- | --- |
| parameters | the parameters associated with the action. Parameter values will be added to the activity intent, keyed by the parameter key name string. |
| activityOptions | Additional options built from an `android.app.ActivityOptions` to apply to an activity start. |




