NdsStore

class NdsStore : DataStore, Disposable

Implementation of a DataStore which is based on an onboard NDS map.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun addOnAutomaticUpdateFailureListener(listener: (error: UpdateErrorCode) -> Unit)

Adds listener that is called when an automatic update fails due to an irrecoverable error.

Link copied to clipboard
fun addOnUpdateListener(listener: () -> Unit)

Adds listener that is called when a region is successfully updated with new content.

Link copied to clipboard
open override fun dispose()
Link copied to clipboard
fun removeOnAutomaticUpdateFailureListener(listener: (error: UpdateErrorCode) -> Unit): Boolean

Removes previously registered listener.

Link copied to clipboard
fun removeOnUpdateListener(listener: () -> Unit): Boolean

Removes previously registered listener.

Link copied to clipboard
fun setActiveRoute(polyline: List<GeoCoordinate>)

Sets the active route.

Link copied to clipboard
fun setPosition(position: GeoCoordinate)

Sets current position.

Link copied to clipboard
fun setUpdatesEnabled(enabled: Boolean)

Enables or disables map updates.

Properties

Link copied to clipboard
open override val storeAccess: NdsStoreAccess
Link copied to clipboard
val sync: NdsStoreAccessSync