Package com.tomtom.sdk.search.common.hybrid

Types

Link copied to clipboard
fun interface FallbackPrecondition

Conditions used to decide what API should be used. If precondition is fulfilled an online API is used, otherwise - onboard.

Link copied to clipboard
class HybridCoordinator(fallbackPreconditions: List<FallbackPrecondition>)

Coordinator that defines what service (online or onboard) should be used based on provided conditions. Runs online and onboard calls from HybridCoordinator.call method in parallel. If preconditions are not fulfilled or online call returns Result.failure, it returns result from onboard call.