/** * Registers a listener for data or events produced by this tap */ public void addListener(TapListener <T> listener) { if (!mListeners.Contains(listener)) { mListeners.Add(listener); } }
/** * Removes the listener from receiving data or events from this tap */ public void removeListener(TapListener <T> listener) { mListeners.Remove(listener); }