SpaceKitContext

interface SpaceKitContext

Functions

Link copied to clipboard
abstract fun addListListener(listener: ListListener<Destination>)

Adds a listener to receive shopping list ordered by route

Link copied to clipboard
abstract fun addNodeTapListener(listener: NodeTapListener)

Adds a NodeTapListener to receive information when user tapped on anchor or section node

Link copied to clipboard
abstract fun addScanListener(scanTypes: List<ScanType>, listener: ScanListener)

Adds a ScanListener for specified types of barcode scan events

Link copied to clipboard
abstract fun clearListListeners()

Clears all list listeners

Link copied to clipboard
abstract fun clearNodeListeners()

Clears all node listeners

Link copied to clipboard
abstract fun clearScanListeners()

Clears all scan listeners

Link copied to clipboard
abstract fun focusOn(destination: Destination?)
Link copied to clipboard
abstract suspend fun liveModeStatusForVenue(): LiveModeStatus

Method to verify status of live mode for current venue

Link copied to clipboard
abstract fun makeHeatMap(aliases: List<String>, threshold: Double): HeatMap

Create a new HeatMap object. Parameters:

Link copied to clipboard
abstract fun requestDataPoint(heatMap: HeatMap)

Request a new data point using the heatmap provided.

Link copied to clipboard
abstract fun setDestinations(destinations: List<Destination>)

Provides SpaceKit with an list of destinations to be used for navigation. Parameter destinations: An ordered list of Destination`s which will be used to provide navigation.

Link copied to clipboard
abstract fun setRoutingOptions(routingOptions: RoutingOptions)

Provides SpaceKit with options to use when planning routes. Parameter routingOptions: A set of options for SpaceKit to use when planning routes.

Link copied to clipboard
abstract fun subscribeToEvents(events: List<SubscriptionEvent>)

Subscribe to receive callbacks when a SubscriptionEvent is fulfilled. Parameter events: A list of SubscriptionEvent which describes a particular event within the SpaceKit SDK to monitor for.

Link copied to clipboard
abstract fun unsubscribeFromEvents(events: List<SubscriptionEvent>)

Removes a subscription previously established by calling subscribeToEvents. Parameter events: The SubscriptionEvent of a subscription to be removed.

Link copied to clipboard
abstract fun updateNodes(aliases: List<String>, state: NodeState)

Updates a NodeState for all nodes with given aliases. Parameter aliases: A list of String`s which represent anchor or section aliases that represent nodes on the map. Parameter state: A NodeState that is used to update the node UI on the map.