TrafficPreferences class
Traffic preferences for the SDK.
Use this object to configure how the traffic subsystem behaves. Do not instantiate directly — obtain an instance via TrafficService.preferences.
The main property is useTraffic, which controls whether routing and navigation consider traffic information and whether that information may be sourced from online services or only from offline caches and user roadblocks.
Example
TrafficService.preferences.useTraffic = TrafficUsage.offline;
See also:
- TrafficService — Service related to traffic data and roadblock management.
- TrafficUsage — Enum describing available traffic usage modes.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasRegisteredAutoReleaseObject ↔ bool
-
getter/setter pairinherited
- pointerId → int
-
The pointer ID of the native object
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- useTraffic ↔ TrafficUsage
-
Current traffic usage mode.
getter/setter pair
Methods
-
dispose(
) → void -
Disposes the native object.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerAutoReleaseObject(
int pointerId) → void -
Registers an object for auto release.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited