addTrafficListener abstract method

void addTrafficListener(
  1. TrafficListener trafficListener
)

Adds a traffic listener.

The class does not retain the object in the 'trafficListener' parameter. It is your responsibility to maintain a strong reference to the target object while it is attached to a class.

Implementation

void addTrafficListener(
    mapkit_traffic_traffic_listener.TrafficListener trafficListener);