YMKCluster

class YMKCluster : NSObject

Undocumented

Summary

Instance methods

func addClusterTapListener(with clusterTapListener: YMKClusterTapListener)
Adds a tap listener for cluster

func removeClusterTapListener(with clusterTapListener: YMKClusterTapListener)
Removes tap listener

Properties

var placemarks: [YMKPlacemarkMapObject] { get }
A list of placemarks the cluster contains

var size: UInt { get }
Cluster size

var appearanceYMKPlacemarkMapObject { get }
Cluster representation displayed on the map

var isValid: Bool { get }
Tells if this object is valid or no

Instance methods

addClusterTapListener(with:)

func addClusterTapListener(with clusterTapListener: YMKClusterTapListener)

Adds a tap listener for cluster.

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


removeClusterTapListener(with:)

func removeClusterTapListener(with clusterTapListener: YMKClusterTapListener)

Removes tap listener.


Properties

placemarks

var placemarks: [YMKPlacemarkMapObject] { get }

A list of placemarks the cluster contains.


size

var size: UInt { get }

Cluster size.


appearance

var appearance: YMKPlacemarkMapObject { get }

Cluster representation displayed on the map.


isValid

var isValid: Bool { get }

Tells if this object is valid or no. Any method called on an invalid object will throw an exception. The object becomes invalid only on UI thread, and only when its implementation depends on objects already destroyed by now. Please refer to general docs about the interface for details on its invalidation.


Предыдущая