C# Class MCAEmotiv.Interop.EEGDataListener

Consumes EEG data using actions which are invoked using an ISynchronizeInvoke. Null actions are ignored
Inheritance: System.SafeDisposable, IEEGDataListener
Show file Open project: madelson/Emotiv-Experimenter Class Usage Examples

Public Methods

Method Description
EEGDataListener ( ISynchronizeInvoke invoker, Action onSourceConnected, Action onListen, Action onSourceDisconnected, System.Action onDispose = null ) : System

Create a listener whose behavior is defined by the given actions. Any action may be null

Listen ( IArrayView data ) : void

Invokes the listen action

SourceConnected ( IEEGDataSource source ) : void

Invokes the connected action

SourceDisconnected ( IEEGDataSource source ) : void

Invokes the disconnected action

Protected Methods

Method Description
DisposeOfManagedResources ( ) : void

Removes the listener from its data source, and invokes the dispose action

Method Details

DisposeOfManagedResources() protected method

Removes the listener from its data source, and invokes the dispose action
protected DisposeOfManagedResources ( ) : void
return void

EEGDataListener() public method

Create a listener whose behavior is defined by the given actions. Any action may be null
public EEGDataListener ( ISynchronizeInvoke invoker, Action onSourceConnected, Action onListen, Action onSourceDisconnected, System.Action onDispose = null ) : System
invoker ISynchronizeInvoke
onSourceConnected Action
onListen Action
onSourceDisconnected Action
onDispose System.Action
return System

Listen() public method

Invokes the listen action
public Listen ( IArrayView data ) : void
data IArrayView
return void

SourceConnected() public method

Invokes the connected action
public SourceConnected ( IEEGDataSource source ) : void
source IEEGDataSource
return void

SourceDisconnected() public method

Invokes the disconnected action
public SourceDisconnected ( IEEGDataSource source ) : void
source IEEGDataSource
return void