public class

VDARLocalizationManager

extends Object
implements LocationListener
java.lang.Object
   ↳ com.vidinoti.android.vdarsdk.VDARLocalizationManager

Class Overview

This class monitor user position changes and save the position for later use.

It can also be configured to trigger the synchronization of the Vidinoti local AR DB with the current position and (optionally) and set of other Priors.

Summary

Public Constructors
VDARLocalizationManager()
Public Methods
Location getCurrentBestLocationEstimate()
Return the best currently available position estimate.
void onLocationChanged(Location location)
void onProviderDisabled(String provider)
void onProviderEnabled(String provider)
void onStatusChanged(String provider, int status, Bundle extras)
void registerEventReceiver(VDARLocalizationManagerEventReceiver receiver)
void startLocalization()
Start the localization updates.
void startLocalization(long updateInterval, float minimalDistance)
void stopLocalization()
Stop the location updates.
void unregisterEventReceiver(VDARLocalizationManagerEventReceiver receiver)
Protected Methods
boolean isBetterLocation(Location location, Location currentBestLocation)
Determines whether one Location reading is better than the current Location fix
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.location.LocationListener

Public Constructors

public VDARLocalizationManager ()

Public Methods

public Location getCurrentBestLocationEstimate ()

Return the best currently available position estimate.

Returns
  • The best currently available position estimate or null if none has been received.

public void onLocationChanged (Location location)

public void onProviderDisabled (String provider)

public void onProviderEnabled (String provider)

public void onStatusChanged (String provider, int status, Bundle extras)

public void registerEventReceiver (VDARLocalizationManagerEventReceiver receiver)

public void startLocalization ()

Start the localization updates.

Your application must include the proper localization authorization tag to allow access to the GPS

public void startLocalization (long updateInterval, float minimalDistance)

public void stopLocalization ()

Stop the location updates.

public void unregisterEventReceiver (VDARLocalizationManagerEventReceiver receiver)

Protected Methods

protected boolean isBetterLocation (Location location, Location currentBestLocation)

Determines whether one Location reading is better than the current Location fix

Parameters
location The new Location that you want to evaluate
currentBestLocation The current Location fix, to which you want to compare the new one