startForResult

Starts the activity for result using launcher, 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

launcher

the ActivityResultLauncher used to start the activity for result

Throws

when the Activity can't be found


abstract fun startForResult(context: Context, deeplinkActivityParams: GlobalActivityStarter.DeeplinkActivityParams, launcher: ActivityResultLauncher<Intent>)

Starts the activity for result using launcher, 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

launcher

the ActivityResultLauncher used to start the activity for result

Throws

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