start

abstract fun start(context: Context, params: GlobalActivityStarter.ActivityParams, options: Bundle? = null)

Starts the activity given its params.

The activity can later retrieve the Serializable using the extension function Bundle.getActivityParams

Parameters

params

The activity parameters. They also identify the activity

context

the context used to start the activity

options

additional options for how the activity should be started, eg. scene transition animations

Throws

when the Activity can't be found


abstract fun start(context: Context, deeplinkActivityParams: GlobalActivityStarter.DeeplinkActivityParams, options: Bundle? = null)

Starts the activity given deeplinkActivityParams.

deeplinkActivityParams will be mapped into ActivityParams using the ParamToActivityMapper, and then used to start the activity. The activity can later retrieve the params using the extension function Bundle.getActivityParams

Parameters

deeplinkActivityParams

Deeplink activity parameters to be mapped into ActivityParams

context

the context used to start the activity

options

additional options for how the activity should be started, eg. scene transition animations

Throws

when the Activity can't be found, or when the deeplinkActivityParams can't be mapped into ActivityParams