Loading...
Searching...
No Matches
AsyncRouteManager Directory Reference

Directories

 dart
 
 java
 
 kotlin
 
 objc
 
 swift
 

Detailed Description

This directory contains comprehensive examples demonstrating the usage of AsyncRouteManager across all supported platforms: Dart/Flutter, Java, Kotlin, Objective-C, and Swift.

Overview

AsyncRouteManager is used for managing asynchronous route planning sessions. It provides functionality for creating route sessions, managing route listeners, and handling route updates asynchronously.

Key Components

AsyncRouteManager

The main class for managing asynchronous route planning sessions.

Methods:

AsyncRouteListener

Protocol/interface for receiving route updates and progress notifications.

Methods:

RouteStatus

Enumeration of router states:

RouteSession

Class for managing route listeners and session lifecycle.

Methods:

RoutePath

Class representing a route path between two points.

Properties:

Methods:

RouteEvent

Class representing a route event (turn, transition, etc.).

Properties:

RouteEventType

Enumeration of route event types:

All examples demonstrate how to get all enum values using the values() method or equivalent platform-specific approach.

RouteOptions

Class for configuring route planning parameters.

Properties:

LocationPoint

Class representing a point within a location.

Properties:

Point

Class representing 2D coordinates.

Properties:

Platform-Specific Examples

Dart/Flutter

Java

Kotlin

Objective-C

Swift

Common Usage Patterns

All examples demonstrate the following common patterns:

  1. SDK Initialization - Setting up NavigineSdk and obtaining managers
  2. Listener Setup - Creating and configuring AsyncRouteListener
  3. Session Creation - Creating route sessions with different options and tags
  4. Route Management - Adding/removing listeners and managing session lifecycle
  5. Route Analysis - Accessing route properties, points, and events
  6. Advanced Features - Multiple sessions, different route options, and cleanup

Documentation Tags

Each example includes comprehensive documentation tags that help developers quickly locate specific API usage examples:

These tags help developers quickly locate specific API usage examples across all platforms.

Running the Examples

Each platform has its own way of running the examples:

Notes