Interface Traffic


public interface Traffic
MapFactor SDK Traffic module
Since:
1.0
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Enable traffic result listener
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Disable traffic data during navigation
    void
    enable(boolean evenWhenRoaming, Traffic.EnableTrafficResultListener listener)
    Enable downloading traffic data and start using it during navigation
    boolean
    Check traffic avoidance is currently active
  • Method Details

    • enable

      void enable(boolean evenWhenRoaming, @Nullable Traffic.EnableTrafficResultListener listener)
      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 roaming
      listener - 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