public final class NDeviceManager
extends com.neurotec.lang.NObject
| Modifier and Type | Class and Description |
|---|---|
static class |
NDeviceManager.DeviceCollection
Collection of plugged in devices.
|
| Constructor and Description |
|---|
NDeviceManager()
Initializes a new instance of the NDeviceManager class.
|
| Modifier and Type | Method and Description |
|---|---|
NDevice |
connectToDevice(com.neurotec.plugins.NPlugin plugin,
com.neurotec.util.NPropertyBag parameters)
Connects to specified device using NPlugin and NPropertyBag parameters.
|
NDevice |
connectToDevice(String plugin,
String parameters)
Connects to a device using specified plugin and connection parameters.
|
void |
disconnectFromDevice(NDevice device)
Disconnects from specified device.
|
com.neurotec.biometrics.NBiometricEngine |
getBiometricEngine() |
static com.neurotec.beans.NParameterDescriptor[] |
getConnectToDeviceParameters(com.neurotec.plugins.NPlugin plugin)
Retrieves connection parameters for a device from a specified plugin.
|
NDeviceManager.DeviceCollection |
getDevices()
Gets devices collection of the current NDeviceManager object.
|
EnumSet<NDeviceType> |
getDeviceTypes()
Gets supported device types by NDeviceManager.
|
static com.neurotec.plugins.NPluginManager |
getPluginManager()
Gets the plugin manager.
|
void |
initialize() |
boolean |
isAutoPlug() |
static boolean |
isConnectToDeviceSupported(com.neurotec.plugins.NPlugin plugin)
Checks whether specified plugin supports connection to device.
|
boolean |
isInitialized() |
static com.neurotec.lang.NType |
nativeTypeOf()
Retrieves the native type for the enclosing class.
|
static com.neurotec.lang.NType |
nDeviceManagerDeviceCallbackNativeTypeOf() |
void |
setAutoPlug(boolean value) |
void |
setBiometricEngine(com.neurotec.biometrics.NBiometricEngine value) |
void |
setDeviceTypes(EnumSet<NDeviceType> value) |
addListener, addPropertyChangeListener, captureProperties, claimHandle, clone, compareTo, copyProperties, dispose, disposeArray, equals, fromHandle, fromHandle, fromObject, getFlags, getHandle, getNativeType, getOwner, getProperty, getProperty, getSize, getSize, getSizeMany, getSizeMany, hashCode, invoke, invoke, invoke, isDisposed, nObjectCallbackNativeTypeOf, nObjectPropertyChangedCallbackNativeTypeOf, ref, removeListener, removePropertyChangeListener, reset, resetProperty, save, save, save, save, save, save, save, save, save, save, save, save, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, setFlags, setProperty, setProperty, toHandle, toObject, toString, toString, unref, unrefArray, unrefElementspublic NDeviceManager()
public static com.neurotec.lang.NType nativeTypeOf()
public static com.neurotec.lang.NType nDeviceManagerDeviceCallbackNativeTypeOf()
public static com.neurotec.plugins.NPluginManager getPluginManager()
public static boolean isConnectToDeviceSupported(com.neurotec.plugins.NPlugin plugin)
plugin - The device plugin.public static com.neurotec.beans.NParameterDescriptor[] getConnectToDeviceParameters(com.neurotec.plugins.NPlugin plugin)
plugin - The device plugin.public void initialize()
public NDevice connectToDevice(com.neurotec.plugins.NPlugin plugin, com.neurotec.util.NPropertyBag parameters)
plugin - Device plugin used to establish a connection.parameters - Properties used for connection.public NDevice connectToDevice(String plugin, String parameters)
plugin - String containing plugin name (e.g. "Media").parameters - String containing camera parameters (e.g. "FileName=C:\video.avi;MediaType=nmtVideo").public void disconnectFromDevice(NDevice device)
device - The device to disconnect.public boolean isInitialized()
public EnumSet<NDeviceType> getDeviceTypes()
public void setDeviceTypes(EnumSet<NDeviceType> value)
public boolean isAutoPlug()
public void setAutoPlug(boolean value)
public com.neurotec.biometrics.NBiometricEngine getBiometricEngine()
public void setBiometricEngine(com.neurotec.biometrics.NBiometricEngine value)
public NDeviceManager.DeviceCollection getDevices()
Copyright © 2016 Neurotechnology. All rights reserved.