Loading...
Searching...
No Matches
LocationManager Directory Reference

Directories

 dart
 
 java
 
 kotlin
 
 objc
 
 swift
 

Detailed Description

This directory contains comprehensive examples demonstrating the usage of the LocationManager module across different programming languages. The LocationManager is responsible for downloading and working with locations, including sublocations, categories, venues, zones, beacons, WiFi access points, and navigation graphs.

Overview

The LocationManager module provides functionality to:

Supported Languages

Key Classes and Methods

LocationManager

Location

Category

Sublocation

Venue

Zone

Beacon

Wifi

Eddystone

Point

Graph

GraphVertex

GraphEdge

ElevationGraph

TransmitterStatus

Enumeration with values:

Usage Instructions

Prerequisites

  1. Ensure you have the Navigine SDK properly installed for your target platform
  2. Set up your user hash and server configuration
  3. Have access to a valid location ID

Basic Usage Pattern

  1. Initialize the Navigine SDK
  2. Get the LocationManager instance
  3. Set up a LocationListener to handle location events
  4. Set the location ID to load
  5. Handle location data in the listener callbacks
  6. Clean up resources when done

Example Structure

Each example demonstrates:

Important Notes

Language-Specific Features

Java

Kotlin

Objective-C

Swift

Dart/Flutter

File Structure

examples/LocationManager/
├── README.md
├── java/
│ └── LocationManagerExample.java
├── kotlin/
│ └── LocationManagerExample.kt
├── objc/
│ └── LocationManagerExample.m
├── swift/
│ └── LocationManagerExample.swift
└── dart/
└── location_manager_example.dart

Running the Examples

Java

javac -cp "path/to/navigine-sdk.jar" LocationManagerExample.java
java -cp ".:path/to/navigine-sdk.jar" LocationManagerExample

Kotlin

kotlinc -cp "path/to/navigine-sdk.jar" LocationManagerExample.kt -include-runtime -d LocationManagerExample.jar
java -jar LocationManagerExample.jar

Objective-C

clang -framework Foundation -framework NavigineSDK LocationManagerExample.m -o LocationManagerExample
./LocationManagerExample

Swift

swiftc -import-objc-header NavigineSDK-Bridging-Header.h LocationManagerExample.swift -o LocationManagerExample
./LocationManagerExample

Dart

dart run location_manager_example.dart

Troubleshooting

Additional Resources