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