Adds an idle event handler to the application.
public static void addOnIdle( EventHandler value )
value
The com.ms.wfc.core.EventHandler for the idle event.
An idle event is triggered each time an application's message queue is empty. An event handler for the idle event can be defined for each thread. You can use it to perform background operations and general application cleanup while a thread is in an idle state.
Note Because the application cannot process messages until the event handler for a thread's idle event returns, do not perform lengthy tasks using this method.
See Also removeOnIdle