Class Update
Adds logic extension methods for IScreenObject.
Inherited Members
Namespace: SadConsole.Quick
Assembly: SadConsole.dll
Syntax
public static class Update
Methods
RemoveUpdateHook(IScreenObject, Action<IScreenObject, TimeSpan>)
Removes the specified handler that was added with WithUpdate(IScreenObject, Action<IScreenObject, TimeSpan>).
Declaration
public static IScreenObject RemoveUpdateHook(this IScreenObject screenObject, Action<IScreenObject, TimeSpan> handler)
Parameters
Type | Name | Description |
---|---|---|
IScreenObject | screenObject | The object to use. |
Action<IScreenObject, TimeSpan> | handler | The handler callback. |
Returns
Type | Description |
---|---|
IScreenObject |
RemoveUpdateHooks(IScreenObject)
Removes all of the keyboard hooks added with WithUpdate(IScreenObject, Action<IScreenObject, TimeSpan>).
Declaration
public static IScreenObject RemoveUpdateHooks(this IScreenObject screenObject)
Parameters
Type | Name | Description |
---|---|---|
IScreenObject | screenObject | The object to use. |
Returns
Type | Description |
---|---|
IScreenObject |
WithUpdate(IScreenObject, Action<IScreenObject, TimeSpan>)
Adds a keyboard handler to a IScreenObject.
Declaration
public static IScreenObject WithUpdate(this IScreenObject screenObject, Action<IScreenObject, TimeSpan> handler)
Parameters
Type | Name | Description |
---|---|---|
IScreenObject | screenObject | The object to use. |
Action<IScreenObject, TimeSpan> | handler | The handler callback. |
Returns
Type | Description |
---|---|
IScreenObject |