Traffic

Traffic object. Adds support to update traffic information. This behaves like a singleton, i.e. all instances are sharing behind the same API interface

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Address of native referenced object. nullptr if not referencing any native allocated object. Note native allocation will happen only once.

Link copied to clipboard

Persistent user roadblocks

Link copied to clipboard

Traffic service preferences.

Link copied to clipboard

Data transfer statistics for this service.

Functions

Link copied to clipboard
fun addPersistentRoadblock(area: GeographicArea, startUTC: Time, expireUTC: Time, transportMode: Int, id: String = ""): TrafficEvent?
external fun addPersistentRoadblock(coords: CoordinatesList, startUTC: Time, expireUTC: Time, transportMode: Int, id: String = ""): TrafficEvent?

Add an user persistent roadblock to collection

Link copied to clipboard
fun finalize()

Overrides finalize that garbage collector will call when needed.

Link copied to clipboard

Get the online traffic service restrictions for the given position

Link copied to clipboard

True if keeps a reference to a C++ SDK object False if keeps a C++ SDK object

Link copied to clipboard
operator fun not(): Boolean

Checks if this object is valid.

Link copied to clipboard
fun release()

Releases the native referenced value of this object if:

Link copied to clipboard

Remove all user persistent roadblock

Link copied to clipboard

Remove an user persistent roadblock

Remove an user persistent roadblock identified by id

Link copied to clipboard

Remove an user roadblock ( persistent or non-persistent )

Link copied to clipboard

Set persistent roadblocks listener