Loading...
Searching...
No Matches
<NCClusterMapObjectListener> Protocol Reference

Listener for updates of a single ClusterMapObject. More...

#include <com/navigine/idl/objc/NCClusterMapObjectListener.h>

Inherits <NSObject>.

Instance Methods

(void) - onClusterChanged:
 Cluster marker needs an app-side update (bitmap, label, etc.).
 

Detailed Description

Listener for updates of a single ClusterMapObject.

onClusterChanged is called when the cluster member count changes while it remains a cluster (at least two icons). It is not called when the cluster is created or destroyed.

Definition at line 21 of file NCClusterMapObjectListener.h.

Method Documentation

◆ onClusterChanged:

- (void) onClusterChanged: (nullable NCClusterMapObject *) cluster

Cluster marker needs an app-side update (bitmap, label, etc.).

Parameters
clusterCluster with at least two member icons. Use getCount() for the badge value.

Swift code snippet:

func onClusterChanged(_ cluster: NCClusterMapObject) {
let memberCount = cluster.count
print("Cluster changed, member count: \‍(memberCount)")
}

Objective C code snippet:

- (void)onClusterChanged:(NCClusterMapObject *)cluster {
int32_t memberCount = [cluster getCount];
NSLog(@"Cluster changed, member count: %d", memberCount);
}

The documentation for this protocol was generated from the following file: