@DOMObjectAttribute @DOMNoInterfaceObjectAttribute public interface IWindowTimers
Allows authors to schedule timer-based callbacks.
Modifier and Type | Method and Description |
---|---|
void |
clearInterval(int handle)
Cancels the timeout set with setInterval() identified by handle
|
void |
clearTimeout(int handle)
Cancels the timeout set with setTimeout() identified by handle.
|
int |
setInterval(Object handler)
Schedules a timeout to run handler every timeout milliseconds.
|
int |
setInterval(Object handler,
int timeout,
Object... args)
Schedules a timeout to run handler every timeout milliseconds.
|
int |
setInterval(String code)
Schedules a timeout to compile and run code every timeout milliseconds.
|
int |
setInterval(String code,
int timeout)
Schedules a timeout to compile and run code every timeout milliseconds.
|
int |
setTimeout(Object handler)
Schedules a timeout to run handler after timeout milliseconds.
|
int |
setTimeout(Object handler,
int timeout,
Object... args)
Schedules a timeout to run handler after timeout milliseconds.
|
int |
setTimeout(String code)
Schedules a timeout to compile and run code after timeout milliseconds.
|
int |
setTimeout(String code,
int timeout)
Schedules a timeout to compile and run code after timeout milliseconds.
|
int setTimeout(Object handler, int timeout, Object... args)
Schedules a timeout to run handler after timeout milliseconds. Any arguments are passed straight through to the handler.
handler
- The handler.timeout
- The timeout.args
- The arguments.int setTimeout(Object handler)
Schedules a timeout to run handler after timeout milliseconds. Any arguments are passed straight through to the handler.
handler
- The handler.int setTimeout(String code, int timeout)
Schedules a timeout to compile and run code after timeout milliseconds.
code
- The js code.timeout
- The timeout.int setTimeout(String code)
Schedules a timeout to compile and run code after timeout milliseconds.
code
- The js code.@DOMNameAttribute(name="clearTimeout") void clearTimeout(int handle)
Cancels the timeout set with setTimeout() identified by handle.
handle
- The handle.int setInterval(Object handler, int timeout, Object... args)
Schedules a timeout to run handler every timeout milliseconds. Any arguments are passed straight through to the handler.
handler
- The handler.timeout
- The timeout.args
- The arguments.int setInterval(Object handler)
Schedules a timeout to run handler every timeout milliseconds. Any arguments are passed straight through to the handler.
handler
- The handler.int setInterval(String code, int timeout)
Schedules a timeout to compile and run code every timeout milliseconds.
code
- The js code.timeout
- The timeout.int setInterval(String code)
Schedules a timeout to compile and run code every timeout milliseconds.
code
- Thejs code.@DOMNameAttribute(name="clearInterval") void clearInterval(int handle)
Cancels the timeout set with setInterval() identified by handle
handle
- The handle.