Changeset View
Changeset View
Standalone View
Standalone View
src/it/reyboz/bustorino/map/LocationOverlay.java
Show All 38 Lines | public class LocationOverlay extends MyLocationNewOverlay { | ||||
@Override | @Override | ||||
public void enableFollowLocation() { | public void enableFollowLocation() { | ||||
super.enableFollowLocation(); | super.enableFollowLocation(); | ||||
callbacks.onEnableFollowMyLocation(); | callbacks.onEnableFollowMyLocation(); | ||||
} | } | ||||
@Override | @Override | ||||
public void disableFollowLocation() { | public void disableFollowLocation() { | ||||
super.disableFollowLocation(); | super.disableFollowLocation(); | ||||
callbacks.onDisableFollowMyLocation(); | callbacks.onDisableFollowMyLocation(); | ||||
} | } | ||||
public interface OverlayCallbacks{ | public interface OverlayCallbacks{ | ||||
/** | /** | ||||
* Called right after disableFollowMyLocation | * Called right after disableFollowMyLocation | ||||
*/ | */ | ||||
void onDisableFollowMyLocation(); | void onDisableFollowMyLocation(); | ||||
/** | /** | ||||
* Called right after enableFollowMyLocation | * Called right after enableFollowMyLocation | ||||
*/ | */ | ||||
void onEnableFollowMyLocation(); | void onEnableFollowMyLocation(); | ||||
} | } | ||||
} | } |
Public contents are in Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) or GNU Free Documentation License (at your option) unless otherwise noted. · Contact / Register