addListener abstract method

void addListener(
  1. MapObjectCollectionListener collectionListener
)

Adds a listener to track notifications of changes to the collection.

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

Implementation

void addListener(
    mapkit_map_map_object_collection_listener.MapObjectCollectionListener
        collectionListener);