Class HookEventArgs
A base class for event args related to the global hook.
Inheritance
HookEventArgs
Inherited Members
Namespace: SharpHook
Assembly: SharpHook.dll
Syntax
public class HookEventArgs : EventArgs
Constructors
| Improve this Doc View SourceHookEventArgs(UioHookEvent)
Initializes a new instance of the HookEventArgs class.
Declaration
public HookEventArgs(UioHookEvent rawEvent)
Parameters
Type | Name | Description |
---|---|---|
UioHookEvent | rawEvent | The raw event data. |
Properties
| Improve this Doc View SourceEventTime
Gets the date and time of the event (in UTC), derived from the event's UNIX timestamp.
Declaration
public DateTimeOffset EventTime { get; }
Property Value
Type | Description |
---|---|
DateTimeOffset | The date and time of the event. |
RawEvent
Gets the raw event data.
Declaration
public UioHookEvent RawEvent { get; }
Property Value
Type | Description |
---|---|
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.
Declaration
public bool SuppressEvent { get; set; }
Property Value
Type | Description |
---|---|
Boolean | true if the event propagation should be suppressed. Otherwise, false. |