Share via


Overview | Methods | This Package | All Packages

OverviewMethodsThis PackageAll Packages

Application.addOnIdle

Adds an idle event handler to the application.

Syntax

public static void addOnIdle( EventHandler value )

Parameters

value

The com.ms.wfc.core.EventHandler for the idle event.

Remarks

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