MMKCluster

@interface MMKCluster : NSObject

Undocumented

Summary

Instance methods

- (void)addClusterTapListenerWithClusterTapListener:
    (nonnull id<MMKClusterTapListener>)clusterTapListener;

Adds a tap listener for cluster

- (void)removeClusterTapListenerWithClusterTapListener:
    (nonnull id<MMKClusterTapListener>)clusterTapListener;

Removes tap listener

Properties

@property (nonatomic, readonly, nonnull)
    NSArray<MMKPlacemarkMapObject *> *placemarks;

A list of placemarks the cluster contains

@property (nonatomic, readonly) NSUInteger size;
Cluster size

@property (nonatomic, readonly, nonnull) MMKPlacemarkMapObject *appearance;
Cluster representation displayed on the map

@property (nonatomic, readonly, getter=isValid) BOOL valid;
Tells if this object is valid or no

Instance methods

addClusterTapListenerWithClusterTapListener:

- (void)addClusterTapListenerWithClusterTapListener:
    (nonnull id<MMKClusterTapListener>)clusterTapListener;

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.


removeClusterTapListenerWithClusterTapListener:

- (void)removeClusterTapListenerWithClusterTapListener:
    (nonnull id<MMKClusterTapListener>)clusterTapListener;

Removes tap listener.


Properties

placemarks

@property (nonatomic, readonly, nonnull)
    NSArray<MMKPlacemarkMapObject *> *placemarks;

A list of placemarks the cluster contains.


size

@property (nonatomic, readonly) NSUInteger size;

Cluster size.


appearance

@property (nonatomic, readonly, nonnull) MMKPlacemarkMapObject *appearance;

Cluster representation displayed on the map.


valid

@property (nonatomic, readonly, getter=isValid) BOOL valid;

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.