MMKBaseMapObjectCollection

@interface MMKBaseMapObjectCollection : MMKMapObject

Undocumented

Summary

Instance methods

- (void)traverseWithMapObjectVisitor:
    (nonnull id<MMKMapObjectVisitor>)mapObjectVisitor;

Traverses through the collection with a visitor object

- (void)removeWithMapObject:(nonnull MMKMapObject *)mapObject;
Removes the given map object from the collection

- (void)clear;
Removes all map objects from the collection

- (void)addListenerWithCollectionListener:
    (nonnull id<MMKMapObjectCollectionListener>)collectionListener;

Adds a listener to track notifications of changes to the collection

- (void)removeListenerWithCollectionListener:
    (nonnull id<MMKMapObjectCollectionListener>)collectionListener;

Removes a listener

Instance methods

traverseWithMapObjectVisitor:

- (void)traverseWithMapObjectVisitor:
    (nonnull id<MMKMapObjectVisitor>)mapObjectVisitor;

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.


removeWithMapObject:

- (void)removeWithMapObject:(nonnull MMKMapObject *)mapObject;

Removes the given map object from the collection.


clear

- (void)clear;

Removes all map objects from the collection.


addListenerWithCollectionListener:

- (void)addListenerWithCollectionListener:
    (nonnull id<MMKMapObjectCollectionListener>)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.


removeListenerWithCollectionListener:

- (void)removeListenerWithCollectionListener:
    (nonnull id<MMKMapObjectCollectionListener>)collectionListener;

Removes a listener.