actionStartActivity

Function

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

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

Parameters

componentNamecomponent of the activity to launch
parametersthe parameters associated with the action. Parameter values will be added to the activity intent, keyed by the parameter key name string.
Android
@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

componentNamecomponent of the activity to launch
parametersthe parameters associated with the action. Parameter values will be added to the activity intent, keyed by the parameter key name string.
activityOptionsAdditional options built from an android.app.ActivityOptions to apply to an activity start.
Android
public fun <T : Activity> actionStartActivity(
    activity: Class<T>,
    parameters: ActionParameters = actionParametersOf(),
): Action

Creates an Action that launches the specified Activity when triggered.

Parameters

activityclass of the activity to launch
parametersthe parameters associated with the action. Parameter values will be added to the activity intent, keyed by the parameter key name string.
Android
@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

activityclass of the activity to launch
parametersthe parameters associated with the action. Parameter values will be added to the activity intent, keyed by the parameter key name string.
activityOptionsAdditional options built from an android.app.ActivityOptions to apply to an activity start.
Android
public inline fun <reified T : Activity> actionStartActivity(
    parameters: ActionParameters = actionParametersOf()
): Action

Creates an Action that launches the specified Activity when triggered.

Parameters

parametersthe parameters associated with the action. Parameter values will be added to the activity intent, keyed by the parameter key name string.
Android
@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

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