The nsIThreadEventFilter
interface may be implemented to determine whether or not an event may be accepted by a nested event queue; see nsIThreadInternal.PushEventQueue()
for more information.
You should implement this interface and its acceptEvent()
method, then pass the object implementing it as the filter.
Inherits from: nsISupports
boolean acceptEvent(in nsIRunnable event); Violates the XPCOM interface guidelines |
This method is called to determine whether or not an event may be accepted by a nested event queue. (see nsIThreadInternal.PushEventQueue()
)
Warning: This method must not make any calls on the thread object.
boolean acceptEvent( in nsIRunnable event );
event
Implement this method to return true
if the event is accepted, or false
to reject it.