public interface Debug
Note: Anything in this interface might be unreliable, is not actively tested and is not guaranteed to work in the same way between releases.
In short; used at your own risk.
The implementation is only supplied in Debug builds.
Modifier and Type | Interface and Description |
---|---|
static interface |
Debug.CurrentLocationListener
Listener callback for the
setCurrentLocation and clearCurrentLocation interface. |
static class |
Debug.CurrentLocationResult
Result codes for setting/clearing the current location see
Debug.CurrentLocationListener . |
static interface |
Debug.InstructionListener
Listener to receive instructions about the Active Trip.
|
static interface |
Debug.TripDemoListener
Listener callback for the trip demo interfaces.
|
static class |
Debug.TripDemoResult
Result codes for starting/stopping the trip demo see
Debug.TripDemoListener . |
Modifier and Type | Method and Description |
---|---|
void |
clearCurrentLocation(Debug.CurrentLocationListener listener)
Clear the current location and start using the GPS location instead (or any of the GPS fallbacks, see
LocationManager ). |
void |
registerInstructionListener(Debug.InstructionListener listener)
Register a InstructionListener.
|
void |
setCurrentLocation(Routeable location,
Debug.CurrentLocationListener listener)
Set the current location to any location on the active map.
|
void |
startTripDemo(short speed,
boolean disableMessage,
Debug.TripDemoListener listener)
Start the trip demo.
|
void |
stopTripDemo(Debug.TripDemoListener listener)
Stop the trip demo.
|
void |
unregisterInstructionListener(Debug.InstructionListener listener)
Unregister a InstructionListener.
|
void setCurrentLocation(Routeable location, Debug.CurrentLocationListener listener)
location
- The Routeable
location to set.listener
- The Debug.CurrentLocationListener
to receive the result of the call.void clearCurrentLocation(Debug.CurrentLocationListener listener)
LocationManager
).
The passed in listener is only active until the result of the call has been returned.
Once a result has been returned the listener won't receive any more callbacks (but can be re-used).listener
- The Debug.CurrentLocationListener
to receive the result of the call.void startTripDemo(short speed, boolean disableMessage, Debug.TripDemoListener listener)
speed
- Speed in percentage (100-300), any values outside these are remapped to fit (100-300).disableMessage
- Disables the preview message.listener
- The Debug.TripDemoListener
void stopTripDemo(Debug.TripDemoListener listener)
listener
- The Debug.TripDemoListener
void registerInstructionListener(Debug.InstructionListener listener)
listener
- Debug.InstructionListener
to receive instructions for the active trip.java.lang.IllegalArgumentException
- if the listener is null.void unregisterInstructionListener(Debug.InstructionListener listener)
listener
- Debug.InstructionListener
to receive instructions for the active trip.java.lang.IllegalArgumentException
- if the listener is null or previously not registered.