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
EventCategorySelects the event category.
eventFilter
IEventListenerSpecifies the event filter.
AddEventListener(EventCategory, IEventListener)
Adds a listener for particular types of events.
public static void AddEventListener(EventCategory eventCategory, IEventListener eventListener)
Parameters
eventCategory
EventCategorySelects the event category.
eventListener
IEventListenerSpecifies the event listener.
AddEventProcessor(EventCategory, IEventProcessor)
Adds an event processing routine.
public static void AddEventProcessor(EventCategory eventCategory, IEventProcessor eventProcessor)
Parameters
eventCategory
EventCategorySelects the event category.
eventProcessor
IEventProcessorSpecifies 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
byteThe event category.
subCategory
byteThe event subcategory.
data1
ushortData related to the event.
data2
uintData related to the event.
RemoveEventFilter(EventCategory, IEventListener)
Removes an event filter.
public static void RemoveEventFilter(EventCategory eventCategory, IEventListener eventFilter)
Parameters
eventCategory
EventCategorySelects an event category.
eventFilter
IEventListenerSpecifies the event filter to be removed.
RemoveEventListener(EventCategory, IEventListener)
Removes an event listener.
public static void RemoveEventListener(EventCategory eventCategory, IEventListener eventListener)
Parameters
eventCategory
EventCategorySelects an event category.
eventListener
IEventListenerSpecifies the event listener to be removed.
RemoveEventProcessor(EventCategory, IEventProcessor)
Removes an event processor.
public static void RemoveEventProcessor(EventCategory eventCategory, IEventProcessor eventProcessor)
Parameters
eventCategory
EventCategorySelects an event category.
eventProcessor
IEventProcessorSpecifies the event processor to be removed.