Listener methods

This is the collection of listener methods within the Metrics interface. There are only two listener methods, addMetricListener and delListener.

addMetricListener

The addMetricListener method registers a listener function with the Metrics object that will be called whenever the value of a specified Metric changes.

delListener

The delListener method removes a listener that was previously added to the Metrics object.