HorizonDataAdapter

Interface to a horizon data adapter that provides data objects of a requested data type within a requested bounding box.

Important: This is a Public Preview API. It may be changed or removed at any time.

Properties

Link copied to clipboard
abstract val type: DataType

The type of the DataObject provided by the HorizonDataAdapter.

Functions

Link copied to clipboard

Adds a data update listener. The horizon data adapter notifies the listener of any update to any of the bounding boxes of interest.

Link copied to clipboard
abstract fun provide(boundingBoxes: List<GeoBoundingBox>, locationDecoder: LocationDecoder): HorizonDataSnapshot

Requests data for a list of bounding boxes.

Link copied to clipboard
Link copied to clipboard
abstract fun subscribe(boundingBoxes: List<GeoBoundingBox>)

Subscribes to a list of bounding boxes of interest.

Link copied to clipboard
abstract fun unsubscribe(boundingBoxes: List<GeoBoundingBox>)

Unsubscribes from a list of previously subscribed bounding boxes that are no longer of interest.

Inherited functions

Link copied to clipboard
abstract fun close()