How can an app make use of that type of listener in this instance?  The app would need the instance of the scanner that is running, prior to it running, to call `->listen()`.  How would this be implemented?