LzIdle

Idle service.

The OpenLaszlo runtime generates idle events at some fixed, unspecified frequency. Here is a simple example that shows how to receive the onidle event:

<canvas height="140" debug="true">
  <attribute name="counter" value="0"/>
  <handler name="onidle" reference="LzIdle">
    while (counter &lt; 4) {
      counter++;
      Debug.write("idling  " + counter);
    }
  </handler>
</canvas>


Methods

callOnIdle()
LzIdle.callOnIdle(d)

Calls the given delegate at the next idle event. This can be used for a non- recursive callback.

Parameters
Name Type Desc
d LzDelegate The delegate to be called on the next idle event.



Events
Name Description
onidle None