actionStartActivity

Function

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

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

the activity intent, keyed by the parameter key name string.

Parameters

componentNamecomponent of the activity to launch
parametersthe parameters associated with the action. Parameter values will be added to
Android
@ExperimentalGlanceApi
fun actionStartActivity(
    componentName: ComponentName,
    parameters: ActionParameters = actionParametersOf(),
    activityOptions: Bundle? = null,
): Action

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

the activity intent, keyed by the parameter key name string. an activity start.

Parameters

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

Creates an Action that launches the specified Activity when triggered.

the activity intent, keyed by the parameter key name string.

Parameters

activityclass of the activity to launch
parametersthe parameters associated with the action. Parameter values will be added to
Android
@ExperimentalGlanceApi
fun <T : Activity> actionStartActivity(
    activity: Class<T>,
    parameters: ActionParameters = actionParametersOf(),
    activityOptions: Bundle? = null,
): Action

Creates an Action that launches the specified Activity when triggered.

the activity intent, keyed by the parameter key name string. an activity start.

Parameters

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

Creates an Action that launches the specified Activity when triggered.

the activity intent, keyed by the parameter key name string.

Parameters

parametersthe parameters associated with the action. Parameter values will be added to
Android
@ExperimentalGlanceApi
inline fun <reified T : Activity> actionStartActivity(
    parameters: ActionParameters = actionParametersOf(),
    activityOptions: Bundle? = null,
): Action

Creates an Action that launches the specified Activity when triggered.

the activity intent, keyed by the parameter key name string. an activity start.

Parameters

parametersthe parameters associated with the action. Parameter values will be added to
activityOptionsAdditional options built from an android.app.ActivityOptions to apply to