Class HookEventArgs
- Namespace
- SharpHook
- Assembly
- SharpHook.dll
A base class for event args related to the global hook.
public class HookEventArgs : EventArgs
- Inheritance
-
HookEventArgs
- Derived
- Inherited Members
Constructors
HookEventArgs(UioHookEvent)
Initializes a new instance of the HookEventArgs class.
public HookEventArgs(UioHookEvent rawEvent)
Parameters
rawEvent
UioHookEventThe raw event data.
- See Also
Properties
EventTime
Gets the date and time of the event (in UTC), derived from the event's UNIX timestamp.
public DateTimeOffset EventTime { get; }
Property Value
- DateTimeOffset
The date and time of the event.
- See Also
RawEvent
Gets the raw event data.
public UioHookEvent RawEvent { get; }
Property Value
- UioHookEvent
The raw event data.
- See Also
SuppressEvent
Gets or sets whether to suppress the event from further propagation after running the event handler. Events must be suppressed synchronously. Suppressing events works only on Windows and macOS.
public bool SuppressEvent { get; set; }
Property Value
- See Also
Methods
FromEvent(UioHookEvent)
Creates a new instance of the HookEventArgs class or a derived class, depending on the event type.
public static HookEventArgs FromEvent(UioHookEvent rawEvent)
Parameters
rawEvent
UioHookEventThe raw event data.
Returns
- See Also