summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/plugins/locationlayer/OnLocationStaleListener.java
blob: 979bed3e2ae8bad8b0180cdaa77791b85c3d33ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package com.mapbox.mapboxsdk.plugins.locationlayer;

/**
 * Listener that can be added as a callback when the last location update
 * is considered stale.
 * <p>
 * The time from the last location update that determines if a location update
 * is stale or not is provided by {@link LocationLayerOptions#staleStateTimeout()}.
 */
public interface OnLocationStaleListener {

  void onStaleStateChange(boolean isStale);
}