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.

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.

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.