NunavSdk

object NunavSdk

The main class to interact with the Nunav Navigation SDK. This class is used for configuring the SDK and starting navigation sessions.

Properties

Link copied to clipboard

Indicates if the initialize method got called successfully.

Functions

Link copied to clipboard
fun initialize(context: Context, apiKey: String, serviceUrl: String = ServiceUrls.NAVIGATION)

Initialize the SDK. Needs to be called once before starting the first navigation, but not again for the next navigation.

Link copied to clipboard
@RequiresPermission(allOf = ["android.permission.ACCESS_FINE_LOCATION", "android.permission.ACCESS_COARSE_LOCATION", "android.permission.POST_NOTIFICATIONS"])
fun startNavigation(context: Context, latitude: Double, longitude: Double)

Start a basic navigation without any additional meta data.

@RequiresPermission(allOf = ["android.permission.ACCESS_FINE_LOCATION", "android.permission.ACCESS_COARSE_LOCATION", "android.permission.POST_NOTIFICATIONS"])
fun startNavigation(context: Context, destinationConfiguration: DestinationConfiguration, routingConfiguration: RoutingConfiguration = RoutingConfiguration())

Start a navigation with additional metadata.