MonobjcMonobjc Documented Class Library
AddGlobalMonitorForEventsMatchingMaskHandler Method (mask, block)
NamespacesMonobjc.AppKitNSEventAddGlobalMonitorForEventsMatchingMaskHandler(NSEventMask, Action<(Of <<'(NSEvent>)>>))

Installs an event monitor that receives copies of events posted to other applications.

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

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static Id AddGlobalMonitorForEventsMatchingMaskHandler(
	NSEventMask mask,
	Action<NSEvent> block
Public Shared Function AddGlobalMonitorForEventsMatchingMaskHandler ( _
	mask As NSEventMask, _
	block As Action(Of NSEvent) _
) As Id
static Id^ AddGlobalMonitorForEventsMatchingMaskHandler(
	NSEventMask mask, 
	Action<NSEvent^>^ block
mask (NSEventMask)
An event mask specifying which events you wish to monitor. See Masks for event types for possible values.
block (Action<(Of <(<'NSEvent>)>)>)
The event handler block object. It is passed the event to monitor. You are unable to change the event, merely observe it.
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)