TrafficBroadcast class abstract
A TrafficBroadcast is expecting the RDS-TMC
format and it can be used when there is no internet connection, so that the OfflineRoutingEngine
can utilize traffic data coming over a radio channel.
The TrafficBroadcast.activate method needs to be called to receive traffic data events.
Note: In order to adopt the TrafficDataProvider interface special hardware is required. Talk
to your HERE representative for more details. Only by adopting the TrafficDataProvider interface
you can integrate radio station signals providing traffic broadcasts. Traffic broadcasts are meant
to be used independently from the already included traffic on routes, on the map and from the
HERE backends (when using the TrafficEngine).
This class continuously reacts to new locations provided from a location source and acts as a LocationListener. The location must be updated regardless of calling TrafficBroadcast.activate.
Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.
- Implemented types
Constructors
- TrafficBroadcast(TrafficBroadcastParameters parameters)
-
Creates a new instance of this class.
factory
- TrafficBroadcast.withSdkEngine(SDKNativeEngine sdkEngine, TrafficBroadcastParameters parameters)
-
Creates a new instance of this class.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- trafficDataProvider → TrafficDataProvider?
-
The traffic data provider that provides the traffic information.
no setter
Methods
-
activate(
) → void - Activates the reception of traffic data over the radio channel.
-
deactivate(
) → void - Deactivates the reception of traffic data over the radio channel.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onLocationUpdated(
Location location) → void -
Called each time a new location is available.
inherited
-
onTMCDataUpdated(
TMCData tmcData) → void - Must be called on every TMC data update.
-
onTMCServiceProviderInfoUpdated(
TMCServiceProviderInfo tmcServiceProdiverInfo) → void - Must be called on every TMC service prodiver info update.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited