actionStartActivity

Function

Android
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
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
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
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
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
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.