Function

actionStartActivity

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

actionStartActivity

Source set: Android
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.

actionStartActivity

Source set: Android
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.

actionStartActivity

Source set: Android
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.

actionStartActivity

Source set: Android
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.

actionStartActivity

Source set: Android
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.

actionStartActivity

Source set: Android
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.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: