generateHorizon

abstract fun generateHorizon(options: List<HorizonOptions>, navigationSnapshot: NavigationSnapshot): List<HorizonResult>

Provides horizon data for the given location, based on a list of previously registered sets of horizon subscription options.

Return

List of horizon result data consisting of one horizon snapshot per set of horizon subscription options, provided registerHorizonOptions was previously called to register each set of horizon subscription options. If a specific set of subscription options was not previously registered, no horizon snapshot data will be generated for that set. If none of the sets of subscription options was registered before, the function will return an empty list.

Parameters

options

List of previously registered sets of subscription options.

navigationSnapshot

Snapshot of the current navigation session. The required location information is extracted from this navigation snapshot.