fetchStructuredSearchState
abstract fun fetchStructuredSearchState(structuredSearchCallback: StructuredSearchCallback): Cancellable
Perform an asynchronous action to fetch the current structured search state. This can be used to retrieve the initial state with candidates representing the top level of address, such as country.
Return
The Cancellable operation.
Parameters
structuredSearchCallback
The StructuredSearchCallback invoked when the operation has been finished either successfully or with an error.
abstract fun fetchStructuredSearchState(): Result<StructuredSearchResponse, StructuredSearchFailure>
Perform a synchronous action to fetch the current structured search state. This can be used to retrieve the initial state with candidates representing the top level of address, such as country.
Return
The Result contains a StructuredSearchResponse if the call succeeds, or a StructuredSearchFailure if it fails.