MapKit Mobile SDK

MMKBaseMapObjectCollection

class MMKBaseMapObjectCollection : MMKMapObject

Undocumented

Summary

Instance methods

func traverse(with mapObjectVisitor: MMKMapObjectVisitor)
Traverses through the collection with a visitor object

func remove(with mapObject: MMKMapObject)
Removes the given map object from the collection

func clear()
Removes all map objects from the collection

func addListener(with collectionListener: MMKMapObjectCollectionListener)
Adds a listener to track notifications of changes to the collection

func removeListener(with collectionListener: MMKMapObjectCollectionListener)
Removes a listener

Instance methods

traverse(with:)

func traverse(with mapObjectVisitor: MMKMapObjectVisitor)

Traverses through the collection with a visitor object. Used for iteration over map objects in the collection.

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


remove(with:)

func remove(with mapObject: MMKMapObject)

Removes the given map object from the collection.


clear()

func clear()

Removes all map objects from the collection.


addListener(with:)

func addListener(with collectionListener: MMKMapObjectCollectionListener)

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.


removeListener(with:)

func removeListener(with collectionListener: MMKMapObjectCollectionListener)

Removes a listener.