Interface IWindowTimers
- Namespace
- AngleSharp.Dom
- Assembly
- AngleSharp.dll
Providers timers to the Window object.
[DomName("WindowTimers")]
[DomNoInterfaceObject]
public interface IWindowTimers
- Extension Methods
Methods
ClearInterval(int)
Clears an interval.
[DomName("clearInterval")]
void ClearInterval(int handle = 0)
Parameters
handle
intThe handle that specifies, which interval to clear.
ClearTimeout(int)
Clears a timeout.
[DomName("clearTimeout")]
void ClearTimeout(int handle = 0)
Parameters
handle
intThe handle that specifies, which timeout to clear.
SetInterval(Action<IWindow>, int)
Keeps executing the provided handler with the interval.
[DomName("setInterval")]
int SetInterval(Action<IWindow> handler, int timeout = 0)
Parameters
handler
Action<IWindow>The handler that is called each time.
timeout
intThe interval in milliseconds.
Returns
- int
The handler to reference clear the interval.
SetTimeout(Action<IWindow>, int)
Executes the provided handler after the timeout.
[DomName("setTimeout")]
int SetTimeout(Action<IWindow> handler, int timeout = 0)
Parameters
handler
Action<IWindow>The handler that is called after the timeout.
timeout
intThe timeout in milliseconds.
Returns
- int
The handler to reference clear the timeout.