UEventObserver is an abstract class that receives UEvent's from the kernel.
Subclass UEventObserver, implementing onUEvent(UEvent event), then call
startObserving() with a match string. The UEvent thread will then call your
onUEvent() method when a UEvent occurs that contains your match string.
Call stopObserving() to stop receiving UEvent's.
There is only one UEvent thread per process, even if that process has
multiple UEventObserver subclass instances. The UEvent thread starts when
the startObserving() is called for the first time in that process. Once
started the UEvent thread will not stop (although it can stop notifying
UEventObserver's via stopObserving()). |