Package com.mapfactor.sdk.traffic
Interface Traffic
public interface Traffic
MapFactor SDK Traffic module
- Since:
- 1.0
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Enable traffic result listener -
Method Summary
Modifier and TypeMethodDescriptionvoid
disable()
Disable traffic data during navigationvoid
enable
(boolean evenWhenRoaming, Traffic.EnableTrafficResultListener listener) Enable downloading traffic data and start using it during navigationboolean
Check traffic avoidance is currently active
-
Method Details
-
enable
Enable downloading traffic data and start using it during navigation- Parameters:
evenWhenRoaming
- true to enable downloading traffic data even when roaming, false only when not roaminglistener
- listener to receive success/failure enabling traffic- Since:
- 1.0
-
disable
void disable()Disable traffic data during navigation- Since:
- 1.0
-
isEnabled
boolean isEnabled()Check traffic avoidance is currently active- Returns:
- true if active, false otherwise
- Since:
- 1.0
-