public static interface

LocationDisplayManager.LocationFilterCallback

com.esri.android.map.LocationDisplayManager.LocationFilterCallback

Class Overview

Defines a custom location filter to apply to the LocationDisplayManager, which determines whether an incoming location update is applied or discarded. By default, new locations are applied if their accuracy is less than 10 meters, within three times the previous location's accuracy (for example, if the previous location's accuracy was 6, and the new location's accuracy is 14, it will be accepted, but if the new location's accuracy is 20, it will be discarded), or if 30 seconds have elapsed since the last applied location. As an example, the following code shows how you could implement a custom callback that performs the default logic: mLocationDisplayManager.setLocationFilterCallback(new LocationDisplayManager.LocationFilterCallback() {

Summary

Public Methods
abstract boolean canApplyNewLocation(Location oldLocation, Location newLocation)
Determines whether the new location should be applied or discarded.

Public Methods

public abstract boolean canApplyNewLocation (Location oldLocation, Location newLocation)

Determines whether the new location should be applied or discarded.

Parameters
oldLocation Location: the last applied location
newLocation Location: the incoming location update
Returns
boolean true to apply the new location; false to discard it