YMKBaseMapObjectCollection
Summary
Instance methods
|
func traverse(with mapObjectVisitor: any YMKMapObjectVisitor) |
|
func remove(with mapObject: YMKMapObject) |
|
func clear() |
|
func addListener(with collectionListener: any YMKMapObjectCollectionListener) |
|
func removeListener(with collectionListener: any YMKMapObjectCollectionListener) |
Instance methods
traverse(with:)
|
func traverse(with mapObjectVisitor: any YMKMapObjectVisitor) |
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: YMKMapObject) |
Removes the given map object from the collection.
clear()
|
func clear() |
Removes all map objects from the collection.
addListener(with:)
|
func addListener(with collectionListener: any YMKMapObjectCollectionListener) |
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: any YMKMapObjectCollectionListener) |
Removes a listener.