Interface IEventListener
Provides an interface to use as the basis of event listeners.
Namespace: nanoFramework.Runtime.Events
Assembly: nanoFramework.Runtime.Events.dll
Syntax
public interface IEventListener
Methods
InitializeForEventSource()
Initializes an event listener so that it listens to events from a particular source.
Declaration
void InitializeForEventSource()
OnEvent(BaseEvent)
Reacts to an event.
Declaration
bool OnEvent(BaseEvent ev)
Parameters
Type | Name | Description |
---|---|---|
BaseEvent | ev | Holds the event that occurred. |
Returns
Type | Description |
---|---|
bool | if the event was processed, or if not.
|