urbanairship-core/src/main/java/com/urbanairship/ActivityMonitor.java
public void addListener(@NonNull final Listener listener) {
        synchronized (listeners) {
            listeners.add(listener);
        }
    }
/**
     * Adds a listener to the activity monitor.
     *
     * @param listener The added listener.
     */
Adds a listener to the activity monitor.
@param listener The added listener.
Adds a listener to the activity monitor . @param listener The added listener .
public void addListener(@NonNull final Listener listener) {
        synchronized (listeners) {
            listeners.add(listener);
        }
    }
public void addListener ( @ NonNull final Listener listener ) { synchronized ( listeners ) { listeners . add ( listener ) ; } }
Adds a listener to the activity monitor.
Adds a listener to the activity monitor .