isMidletPaused
function isMidletPaused: boolean;
Returns true if the MIDlet is in the paused state, otherwise false.
When the MIDlet is started, it is not in the paused state. The MIDlet can enter paused state when, for example, the phone receives incoming call. Then the MIDlet enters paused state, the call is answered, and after the phone call the user may resume the MIDlet - after resuming the MIDlet is not in the paused state any more.
Determining if the MIDlet is in the paused state may be useful in different applications. Consider, for example, a game that must be paused when the MIDlet is paused. The following code would do the trick:
...
repeat
{ process keypad inputs and read the timer }
{ if the MIDlet is paused, wait until it is resumed }
while isMidletPaused do
begin
delay(100);
end;
until gameOver;
...
See also: getKeyCode, getRelativeTimeMs, halt