selectCandidate

abstract fun selectCandidate(candidate: StructuredSearchCandidate, structuredSearchCallback: StructuredSearchCallback): Cancellable

Perform an asynchronous action to select a specific candidate in the current step. This will advance to the next step of the search path.

Note: to go back to the previous step, use goBack call.

Return

The Cancellable operation.

Parameters

candidate

The candidate to select in the current step.

structuredSearchCallback

The StructuredSearchCallback invoked when the selection has been finished either successfully or with an error.


Perform a synchronous action to select a specific candidate in the current step. This will advance to the next step of the search path.

Note: to go back to the previous step, use goBack call.

Return

The Result contains a StructuredSearchResponse if the call succeeds, or a StructuredSearchFailure if it fails.

Parameters

candidate

The candidate to select in the current step.