Table of Contents

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 UioHookEvent

The 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

bool

true if the event propagation should be suppressed. Otherwise, false.

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 UioHookEvent

The raw event data.

Returns

HookEventArgs
See Also

See Also