Package com.mapfactor.sdk.traffic
Interface Traffic
public interface Traffic
MapFactor SDK Traffic module
- Since:
- 1.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceEnable traffic result listener -
Method Summary
Modifier and TypeMethodDescriptionvoiddisable()Disable traffic data during navigationvoidenable(boolean evenWhenRoaming, Traffic.EnableTrafficResultListener listener)Enable downloading traffic data and start using it during navigationbooleanCheck 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
-