Table of Contents

Class EventSink

Namespace
nanoFramework.Runtime.Events
Assembly
nanoFramework.Runtime.Events.dll

Provides a dispatcher for handling events.

public class EventSink : NativeEventDispatcher, IDisposable
Inheritance
EventSink
Implements
Inherited Members
Extension Methods

Methods

AddEventFilter(EventCategory, IEventListener)

Adds an event filter to the dispatcher.

public static void AddEventFilter(EventCategory eventCategory, IEventListener eventFilter)

Parameters

eventCategory EventCategory

Selects the event category.

eventFilter IEventListener

Specifies the event filter.

AddEventListener(EventCategory, IEventListener)

Adds a listener for particular types of events.

public static void AddEventListener(EventCategory eventCategory, IEventListener eventListener)

Parameters

eventCategory EventCategory

Selects the event category.

eventListener IEventListener

Specifies the event listener.

AddEventProcessor(EventCategory, IEventProcessor)

Adds an event processing routine.

public static void AddEventProcessor(EventCategory eventCategory, IEventProcessor eventProcessor)

Parameters

eventCategory EventCategory

Selects the event category.

eventProcessor IEventProcessor

Specifies the event processor.

PostManagedEvent(byte, byte, ushort, uint)

Processes event information.

public static void PostManagedEvent(byte category, byte subCategory, ushort data1, uint data2)

Parameters

category byte

The event category.

subCategory byte

The event subcategory.

data1 ushort

Data related to the event.

data2 uint

Data related to the event.

RemoveEventFilter(EventCategory, IEventListener)

Removes an event filter.

public static void RemoveEventFilter(EventCategory eventCategory, IEventListener eventFilter)

Parameters

eventCategory EventCategory

Selects an event category.

eventFilter IEventListener

Specifies the event filter to be removed.

RemoveEventListener(EventCategory, IEventListener)

Removes an event listener.

public static void RemoveEventListener(EventCategory eventCategory, IEventListener eventListener)

Parameters

eventCategory EventCategory

Selects an event category.

eventListener IEventListener

Specifies the event listener to be removed.

RemoveEventProcessor(EventCategory, IEventProcessor)

Removes an event processor.

public static void RemoveEventProcessor(EventCategory eventCategory, IEventProcessor eventProcessor)

Parameters

eventCategory EventCategory

Selects an event category.

eventProcessor IEventProcessor

Specifies the event processor to be removed.