Class NativeEventDispatcher
- Namespace
- nanoFramework.Runtime.Events
- Assembly
- nanoFramework.Runtime.Events.dll
Initializes a new instance of the NativeEventDispatcher class.
public class NativeEventDispatcher : IDisposable
- Inheritance
-
NativeEventDispatcher
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
NativeEventDispatcher(string, ulong)
Initializes a new instance of the NativeEventDispatcher class.
public NativeEventDispatcher(string driverName, ulong driverData)
Parameters
driverName
stringThe name of a registered driver.
driverData
ulongDriver data to be used when initializing the driver.
Fields
callbacks
The event handler for this NativeEventDispatcher object (a multicast combinable delegate).
protected NativeEventHandler callbacks
Field Value
disposed
protected bool disposed
Field Value
threadSpawn
The event handler for this NativeEventDispatcher object (a multicast combinable delegate).
protected NativeEventHandler threadSpawn
Field Value
Methods
DisableInterrupt()
Disables the interrupt for this NativeEventDispatcher object.
public virtual void DisableInterrupt()
Dispose()
Releases resources used by this NativeEventDispatcher object.
public void Dispose()
Dispose(bool)
Releases resources used by this NativeEventDispatcher object.
protected virtual void Dispose(bool disposing)
Parameters
disposing
bool
if in the process of disposing, ortrue
otherwise.false
EnableInterrupt()
Enables the interrupt for this NativeEventDispatcher object.
public virtual void EnableInterrupt()
Finalize()
protected override void Finalize()
Events
OnInterrupt
Adds or removes callback methods for native events.
public event NativeEventHandler OnInterrupt
Event Type
Remarks
Applications can subscribe to this event to be notified when an interrupt event occurs.