ection class="s1" id="/api/metrics/interfaces/metrics/metrics/methods/listener/addmetriclistener/" data-id="aML"><h1><code>addMetricListener</code></h1><p>The <code>addMetricListener</code> method registers a listener function with the <a href="/api/metrics/interfaces/metrics/metrics/"><code>Metrics</code></a> object that will be called whenever the value of a specified <a href="/api/metrics/type-aliases/metric/metric/"><code>Metric</code></a> changes.</p><pre><code><span class="function"><a href="/api/metr