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)
A base class for event args related to the global hook.
public HookEventArgs(UioHookEvent rawEvent)
Parameters
rawEventUioHookEventThe 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.
IsEventSimulated
Gets the value which indicates whether the event has been simulated.
public bool IsEventSimulated { get; }
Property Value
RawEvent
Gets the raw event data.
public UioHookEvent RawEvent { get; }
Property Value
- UioHookEvent
The raw event data.
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
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
rawEventUioHookEventThe raw event data.