Show / Hide Table of Contents

Class Update

Adds logic extension methods for IScreenObject.

Inheritance
object
Update
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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
In this article

Back to top

Back to top Generated by DocFX