public final class TerabeeSdk
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
TerabeeSdk.DataCallback
Interface definition for a callback to be invoked when receive byte data from sensor.
|
static interface |
TerabeeSdk.DataDistanceCallback
Interface definition for a callback to be invoked when receive distance data from sensor (TeraRanger Evo 3m or TeraRanger Evo 60m).
|
static interface |
TerabeeSdk.DataDistancesCallback
Interface definition for a callback to be invoked when receive distances data from TeraRanger Multiflex sensor.
|
static interface |
TerabeeSdk.DataMatrixCallback
Interface definition for a callback to be invoked when receive matrix data from TeraRanger Evo 64px sensor.
|
static interface |
TerabeeSdk.DataSensorCallback
Interface definition for a callback to be invoked when receive data from any supported sensor.
|
static interface |
TerabeeSdk.DataThermalMatrixCallback
Interface definition for a callback to be invoked when receive thermal matrix data from TeraRanger Evo Thermal sensor.
|
static class |
TerabeeSdk.DeviceType
Type of device
|
static interface |
TerabeeSdk.IConfiguration
Interface definition represent additional configuration for the sensor
|
static interface |
TerabeeSdk.IUsbConnect
Callback allow receive event about connection progress
|
static class |
TerabeeSdk.MultiflexConfiguration
This class represents configuration for the Multiflex sensor
|
Modifier and Type | Method and Description |
---|---|
void |
connect(TerabeeSdk.IUsbConnect callback)
Connection to the sensor with auto-detecting of DeviceType
|
void |
connect(TerabeeSdk.IUsbConnect callback,
java.util.Map<TerabeeSdk.DeviceType,TerabeeSdk.IConfiguration> configurations)
Connection to the sensor with auto-detecting of DeviceType
|
void |
connect(TerabeeSdk.IUsbConnect callback,
TerabeeSdk.DeviceType deviceModel)
Connection to the sensor
|
void |
connect(TerabeeSdk.IUsbConnect callback,
TerabeeSdk.DeviceType deviceModel,
java.util.Map<TerabeeSdk.DeviceType,TerabeeSdk.IConfiguration> configurations)
Connection to the sensor
|
void |
disconnect()
Disconnect from sensor
|
void |
dispose()
Release sdk
|
static TerabeeSdk |
getInstance()
Returns the instance of sdk.
|
void |
init(android.content.Context context)
Initialize the sdk.
|
void |
registerDataReceive(TerabeeSdk.DataCallback observer)
Registration for receive data from sensor
|
void |
unregisterDataReceive(TerabeeSdk.DataCallback observer)
Unregistering to receive data.
|
public static TerabeeSdk getInstance()
public void init(android.content.Context context)
context
- the app contextpublic void dispose()
public void connect(TerabeeSdk.IUsbConnect callback)
callback
- the callback of connectionpublic void connect(TerabeeSdk.IUsbConnect callback, java.util.Map<TerabeeSdk.DeviceType,TerabeeSdk.IConfiguration> configurations)
callback
- the callback of connectionconfigurations
- configuration parameters for the sensorspublic void connect(TerabeeSdk.IUsbConnect callback, TerabeeSdk.DeviceType deviceModel)
callback
- the callback of connectiondeviceModel
- the device modelpublic void connect(TerabeeSdk.IUsbConnect callback, TerabeeSdk.DeviceType deviceModel, java.util.Map<TerabeeSdk.DeviceType,TerabeeSdk.IConfiguration> configurations)
callback
- the callback of connectiondeviceModel
- the device modelconfigurations
- configuration parameters for the sensorspublic void disconnect()
public void registerDataReceive(TerabeeSdk.DataCallback observer)
observer
- the IDataCallback observerpublic void unregisterDataReceive(TerabeeSdk.DataCallback observer)