MonobjcMonobjc Documented Class Library
AddLocalMonitorForEventsMatchingMaskHandler Method (mask, block)
NamespacesMonobjc.AppKitNSEventAddLocalMonitorForEventsMatchingMaskHandler(NSEventMask, Func<(Of <<'(NSEvent, NSEvent>)>>))

Installs an event monitor that receives copies of events posted to this application before they are dispatched.

Original signature is '+ (id)addLocalMonitorForEventsMatchingMask:(NSEventMask)mask handler:(NSEvent* (^)(NSEvent*))block'

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static Id AddLocalMonitorForEventsMatchingMaskHandler(
	NSEventMask mask,
	Func<NSEvent, NSEvent> block
Public Shared Function AddLocalMonitorForEventsMatchingMaskHandler ( _
	mask As NSEventMask, _
	block As Func(Of NSEvent, NSEvent) _
) As Id
static Id^ AddLocalMonitorForEventsMatchingMaskHandler(
	NSEventMask mask, 
	Func<NSEvent^, NSEvent^>^ block
mask (NSEventMask)
An event mask specifying which events you wish to monitor. See Masks for event types for possible values.
block (Func<(Of <(<'NSEvent, NSEvent>)>)>)
The event handler block object. It is passed the event to monitor. You can return the event unmodified, create and return a new NSEvent object, or return nil to stop the dispatching of the event.
Return Value
An event handler object.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)