submitClientResponse

fun <DATA_TYPE> submitClientResponse(    clientResponseOptionId: String,     data: DATA_TYPE?,     callback: TSIdoCallback<TSIdoServiceResponse>)

This method will submit client input to the Journey step to process.

Parameters

clientResponseOptionId

The response option ID is one of the IDs provided in the clientResponseOptions. This would either be TSIdoClientResponseOptionType.ClientInput for collected user input, or one of the others if another journey path was selected by the user.

data

The client response data object. Mandatory in TSIdoClientResponseOptionType.ClientInput response option type, populate with data for the Journey step to process. Optional in TSIdoClientResponseOptionType.Cancel and TSIdoClientResponseOptionType.Custom as an additional parameters for the branch.

callback

The callback that will be invoked when the TSIdoServiceResponse is received.