NeuroConnection Class
From Neurotech Software Development Kit
- java.lang.Object
-
- ru.neurotech.neurodevices.NeuroConnection
-
public class <span class="typeNameLabel">NeuroConnection</span> extends java.lang.Object
Provides common methods for device scanning and
-
- <a name="field.summary">
</a>
Field Summary
Fields Modifier and Type Field and Description <a href="../../../ru/neurotech/common/SubscribersNotifier.html" title="class in ru.neurotech.common">SubscribersNotifier</a><<a href="../../../ru/neurotech/neurodevices/NeuroDevice.html" title="class in ru.neurotech.neurodevices">NeuroDevice</a>>
<a href="../../../ru/neurotech/neurodevices/NeuroConnection.html#deviceFound">deviceFound</a>
- <a name="constructor.summary">
</a>
Constructor Summary
Constructors Constructor and Description <a href="../../../ru/neurotech/neurodevices/NeuroConnection.html#NeuroConnection-android.content.Context-">NeuroConnection</a>(android.content.Context context)
Creates new instance of NeuroConnection class with current application context
- <a name="method.summary">
</a>
Method Summary
All Methods <a href="javascript:show(2);">Instance Methods</a> <a href="javascript:show(8);">Concrete Methods</a> Modifier and Type Method and Description <a href="../../../ru/neurotech/neurodevices/NeuroDevice.html" title="class in ru.neurotech.neurodevices">NeuroDevice</a>
<a href="../../../ru/neurotech/neurodevices/NeuroConnection.html#getDeviceByAddress-java.lang.String-">getDeviceByAddress</a>(java.lang.String address)
void
<a href="../../../ru/neurotech/neurodevices/NeuroConnection.html#shutdown--">shutdown</a>()
Deletes native NeuroConnection object and frees all resourcesvoid
<a href="../../../ru/neurotech/neurodevices/NeuroConnection.html#startScan-int-">startScan</a>(int timeout)
Starts Neurotech© devices scanning.void
<a href="../../../ru/neurotech/neurodevices/NeuroConnection.html#stopScan--">stopScan</a>()
Stops device scan process- <a name="methods.inherited.from.class.java.lang.Object">
</a>
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- <a name="methods.inherited.from.class.java.lang.Object">
</a>
- <a name="field.summary">
</a>
-
- <a name="field.detail">
</a>
Field Detail
<a name="deviceFound"> </a>
-
deviceFound
public <a href="../../../ru/neurotech/common/SubscribersNotifier.html" title="class in ru.neurotech.common">SubscribersNotifier</a><<a href="../../../ru/neurotech/neurodevices/NeuroDevice.html" title="class in ru.neurotech.neurodevices">NeuroDevice</a>> deviceFound
-
- <a name="constructor.detail">
</a>
Constructor Detail
<a name="NeuroConnection-android.content.Context-"> </a>
-
NeuroConnection
public NeuroConnection(android.content.Context context)
Creates new instance of NeuroConnection class with current application context- Parameters:
context
- Current application context
-
- <a name="method.detail">
</a>
Method Detail
<a name="shutdown--"> </a>
-
shutdown
public void shutdown()
Deletes native NeuroConnection object and frees all resources
<a name="startScan-int-"> </a>
-
startScan
public void startScan(int timeout)
Starts Neurotech© devices scanning. Scan stops after @timeout milliseconds- Parameters:
timeout
- Duration of scanning. Less or equal to zero for infinity
<a name="stopScan--"> </a>
-
stopScan
public void stopScan()
Stops device scan process
<a name="getDeviceByAddress-java.lang.String-"> </a>
-
getDeviceByAddress
public <a href="../../../ru/neurotech/neurodevices/NeuroDevice.html" title="class in ru.neurotech.neurodevices">NeuroDevice</a> getDeviceByAddress(java.lang.String address)
-
- <a name="field.detail">
</a>