goBack

abstract fun goBack(@IntRange(from = 1) step: Int = 1, structuredSearchCallback: StructuredSearchCallback): Cancellable

Perform an asynchronous action to go back to previous selection from current step. step must be a positive value. If step is larger than the number of steps that have been taken, e.g. goBack is called with step set to 9 at the third step, it goes back to the first step.

Return

The Cancellable operation.

Parameters

step

The number of step to go back. Default to 1.

structuredSearchCallback

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


Perform a synchronous action to go back to previous selection from current step. step must be a positive value. If step is larger than the number of steps that have been taken, e.g. goBack is called with step set to 9 at the third step, it goes back to the first step.

Return

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

Parameters

step

The number of step to go back. Default to 1.