Package com.zebra.scannercontrol
Interface IDcsSdkApi
-
- All Known Implementing Classes:
SDKHandler
public interface IDcsSdkApiInterface which will be implemented by SDK which will control various operations of the scanner
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description DCSSDKDefs.DCSSDK_RESULTdcssdkClearBTAddress()Method to clear the Bluetooth address stored in SDK.DCSSDKDefs.DCSSDK_RESULTdcssdkClose()Method to close the communication with SDKDCSSDKDefs.DCSSDK_RESULTdcssdkEnableAutomaticSessionReestablishment(boolean enable, int fromScannerID)Method requests to enable/disable "Automatic communication session reestablishment" option for a particular scanner.DCSSDKDefs.DCSSDK_RESULTdcssdkEnableAvailableScannersDetection(boolean enable)Method requests to enable/disable "Available scanners detection" option.DCSSDKDefs.DCSSDK_RESULTdcssdkEnableBluetoothScannersDiscovery(boolean enable)Method requests to enable/disable "Bluetooth scanners discovery" option.DCSSDKDefs.DCSSDK_RESULTdcssdkEstablishCommunicationSession(int scannerID)Method requests to establish communication session with a particular available scanner.java.lang.StringdcssdkExecuteCommandOpCodeInXMLForScanner(DCSSDKDefs.DCSSDK_COMMAND_OPCODE opCode, java.lang.String inXML)Method provides synchronous execution of a particular method via an opcode.DCSSDKDefs.DCSSDK_RESULTdcssdkExecuteCommandOpCodeInXMLForScanner(DCSSDKDefs.DCSSDK_COMMAND_OPCODE opCode, java.lang.String inXML, java.lang.StringBuilder outXML)Method provides synchronous execution of a particular method via an opcode.DCSSDKDefs.DCSSDK_RESULTdcssdkExecuteCommandOpCodeInXMLForScanner(DCSSDKDefs.DCSSDK_COMMAND_OPCODE opCode, java.lang.String inXML, java.lang.StringBuilder outXML, int scannerID)Deprecated.DCSSDKDefs.DCSSDK_RESULTdcssdkExecuteSSICommandOpCodeInXMLForScanner(DCSSDKDefs.DCSSDK_COMMAND_OPCODE opCode, java.lang.String inXML, java.lang.StringBuilder outXML, int scannerID)Method provides synchronous execution SSI command of a particular method via an opcode.java.util.List<DCSScannerInfo>dcssdkGetActiveScannersList()Method to fetch the list of active(connected via bluetooth) scannersDCSSDKDefs.DCSSDK_RESULTdcssdkGetActiveScannersList(java.util.List<DCSScannerInfo> activeScannersList)Method to fetch the list of active(connected via bluetooth) scannersjava.util.List<DCSScannerInfo>dcssdkGetAvailableScannersList()Method to fetch the list of available(paired via bluetooth) scannersDCSSDKDefs.DCSSDK_RESULTdcssdkGetAvailableScannersList(java.util.List<DCSScannerInfo> availableScannersList)Method to fetch the list of available(paired via bluetooth) scannersIDCConfigdcssdkGetIDCConfig()Method to get the IDCConfig information stored in SDK.BarCodeViewdcssdkGetPairingBarcode(DCSSDKDefs.DCSSDK_BT_PROTOCOL bluetoothProtocol, DCSSDKDefs.DCSSDK_BT_SCANNER_CONFIG config)Method provides pairing barcode for Bluetooth scannersBarCodeViewdcssdkGetPairingBarcode(DCSSDKDefs.DCSSDK_BT_PROTOCOL bluetoothProtocol, DCSSDKDefs.DCSSDK_BT_SCANNER_CONFIG config, java.lang.String bluetoothMAC)Method provides pairing barcode for Bluetooth scannersBarCodeViewdcssdkGetUSBSNAPIWithImagingBarcode()Method provides connection barcode for USB scannersjava.lang.StringdcssdkGetVersion()Method to return the version of the SDK.DCSSDKDefs.DCSSDK_RESULTdcssdkSetBTAddress(java.lang.String bluetoothMAC)Method to set the Bluetooth address of the device.DCSSDKDefs.DCSSDK_RESULTdcssdkSetDelegate(IDcsSdkApiDelegate delegate)Registers a particular object which conforms toIDcsSdkApiDelegateinterface as a receiver of SDK notifications.DCSSDKDefs.DCSSDK_RESULTdcssdkSetIDCConfig(IDCConfig idcConfig)Method to set the IDC configuration information for SDK.DCSSDKDefs.DCSSDK_RESULTdcssdkSetOperationalMode(DCSSDKDefs.DCSSDK_MODE operationalMode)Method to set the operational mode(If multiple modes are suppoted)DCSSDKDefs.DCSSDK_RESULTdcssdkSetSTCEnabledState(boolean enable)Method set Scanner Control App STC(Scan to connect) enabled state.DCSSDKDefs.DCSSDK_RESULTdcssdkStartScanForAvailableDevices()Method to scan all the currently available Bluetooth Devices.DCSSDKDefs.DCSSDK_RESULTdcssdkStartScanForTopologyChanges()Scan for topology changesDCSSDKDefs.DCSSDK_RESULTdcssdkStopScanningDevices()Method to stop current Bluetooth Devices scanning.DCSSDKDefs.DCSSDK_RESULTdcssdkSubsribeForEvents(int sdkEventsMask)Method to enable providing of notifications of requested types.DCSSDKDefs.DCSSDK_RESULTdcssdkTerminateCommunicationSession(int scannerID)Method requests to terminate communication session with a particular active scanner.DCSSDKDefs.DCSSDK_RESULTdcssdkUnsubsribeForEvents(int sdkEventsMask)Method to disable providing of notification of requested types.
-
-
-
Method Detail
-
dcssdkSetDelegate
DCSSDKDefs.DCSSDK_RESULT dcssdkSetDelegate(IDcsSdkApiDelegate delegate)
Registers a particular object which conforms toIDcsSdkApiDelegateinterface as a receiver of SDK notifications. Registration of a particular object which conforms toIDcsSdkApiDelegateinterface is required to receive notifications from the SDK.- Parameters:
delegate- Delegate which will be implemented by the app- Returns:
- Success/Failure of the operation(One of
DCSSDKDefs.DCSSDK_RESULT)
-
dcssdkClose
DCSSDKDefs.DCSSDK_RESULT dcssdkClose()
Method to close the communication with SDK- Returns:
- Success/Failure of the operation(One of
DCSSDKDefs.DCSSDK_RESULT)
-
dcssdkGetVersion
java.lang.String dcssdkGetVersion()
Method to return the version of the SDK.- Returns:
- SDK Version
-
dcssdkSetOperationalMode
DCSSDKDefs.DCSSDK_RESULT dcssdkSetOperationalMode(DCSSDKDefs.DCSSDK_MODE operationalMode)
Method to set the operational mode(If multiple modes are suppoted)- Parameters:
operationalMode- Operational mode to be set(one ofDCSSDKDefs.DCSSDK_MODE)- Returns:
- Success/Failure of the operation(One of
DCSSDKDefs.DCSSDK_RESULT)
-
dcssdkSubsribeForEvents
DCSSDKDefs.DCSSDK_RESULT dcssdkSubsribeForEvents(int sdkEventsMask)
Method to enable providing of notifications of requested types.- Parameters:
sdkEventsMask- Mask which decides the subscription status- Returns:
- Success/Failure of the operation(One of
DCSSDKDefs.DCSSDK_RESULT)
-
dcssdkUnsubsribeForEvents
DCSSDKDefs.DCSSDK_RESULT dcssdkUnsubsribeForEvents(int sdkEventsMask)
Method to disable providing of notification of requested types.- Parameters:
sdkEventsMask- Unsubscription option flags.- Returns:
- Success/Failure of the operation(One of
DCSSDKDefs.DCSSDK_RESULT)
-
dcssdkGetAvailableScannersList
DCSSDKDefs.DCSSDK_RESULT dcssdkGetAvailableScannersList(java.util.List<DCSScannerInfo> availableScannersList)
Method to fetch the list of available(paired via bluetooth) scanners- Parameters:
availableScannersList- List of scanners which should be updated- Returns:
- Success/Failure of the operation(One of
DCSSDKDefs.DCSSDK_RESULT)
-
dcssdkGetAvailableScannersList
java.util.List<DCSScannerInfo> dcssdkGetAvailableScannersList()
Method to fetch the list of available(paired via bluetooth) scanners- Returns:
- List of available scanners)
-
dcssdkStartScanForAvailableDevices
DCSSDKDefs.DCSSDK_RESULT dcssdkStartScanForAvailableDevices()
Method to scan all the currently available Bluetooth Devices.- Returns:
- Success/Failure of the operation(One of
DCSSDKDefs.DCSSDK_RESULT)
-
dcssdkStopScanningDevices
DCSSDKDefs.DCSSDK_RESULT dcssdkStopScanningDevices()
Method to stop current Bluetooth Devices scanning.- Returns:
- Success/Failure of the operation(One of
DCSSDKDefs.DCSSDK_RESULT)
-
dcssdkGetActiveScannersList
DCSSDKDefs.DCSSDK_RESULT dcssdkGetActiveScannersList(java.util.List<DCSScannerInfo> activeScannersList)
Method to fetch the list of active(connected via bluetooth) scanners- Parameters:
activeScannersList- List of scanners which should be updated- Returns:
- Success/Failure of the operation(One of
DCSSDKDefs.DCSSDK_RESULT)
-
dcssdkGetActiveScannersList
java.util.List<DCSScannerInfo> dcssdkGetActiveScannersList()
Method to fetch the list of active(connected via bluetooth) scanners- Returns:
- List of active scanners)
-
dcssdkEstablishCommunicationSession
DCSSDKDefs.DCSSDK_RESULT dcssdkEstablishCommunicationSession(int scannerID)
Method requests to establish communication session with a particular available scanner.- Parameters:
scannerID- Unique identifier of a particular scanner assigned by SDK- Returns:
- Success/Failure of the operation(One of
DCSSDKDefs.DCSSDK_RESULT)
-
dcssdkTerminateCommunicationSession
DCSSDKDefs.DCSSDK_RESULT dcssdkTerminateCommunicationSession(int scannerID)
Method requests to terminate communication session with a particular active scanner.- Parameters:
scannerID- Unique identifier of a particular scanner assigned by SDK.- Returns:
- Success/Failure of the operation(One of
DCSSDKDefs.DCSSDK_RESULT)
-
dcssdkEnableAvailableScannersDetection
DCSSDKDefs.DCSSDK_RESULT dcssdkEnableAvailableScannersDetection(boolean enable)
Method requests to enable/disable "Available scanners detection" option.- Parameters:
enable- (true/false) based on whether the option should be enabled or disabled- Returns:
- Success/Failure of the operation(One of
DCSSDKDefs.DCSSDK_RESULT)
-
dcssdkEnableBluetoothScannersDiscovery
DCSSDKDefs.DCSSDK_RESULT dcssdkEnableBluetoothScannersDiscovery(boolean enable)
Method requests to enable/disable "Bluetooth scanners discovery" option.- Parameters:
enable- (true/false) based on whether the option should be enabled or disabled- Returns:
- Success/Failure of the operation(One of
DCSSDKDefs.DCSSDK_RESULT)
-
dcssdkSetSTCEnabledState
DCSSDKDefs.DCSSDK_RESULT dcssdkSetSTCEnabledState(boolean enable)
Method set Scanner Control App STC(Scan to connect) enabled state.- Parameters:
enable- (true/false) based on whether the option should be enabled or disabled- Returns:
- Success/Failure of the operation(One of
DCSSDKDefs.DCSSDK_RESULT)
-
dcssdkEnableAutomaticSessionReestablishment
DCSSDKDefs.DCSSDK_RESULT dcssdkEnableAutomaticSessionReestablishment(boolean enable, int fromScannerID)
Method requests to enable/disable "Automatic communication session reestablishment" option for a particular scanner.- Parameters:
enable- true/false for enabling/disablingfromScannerID- identifier of a particular scanner assigned by SDK.- Returns:
- Success/Failure of the operation(One of
DCSSDKDefs.DCSSDK_RESULT)
-
dcssdkExecuteCommandOpCodeInXMLForScanner
@Deprecated DCSSDKDefs.DCSSDK_RESULT dcssdkExecuteCommandOpCodeInXMLForScanner(DCSSDKDefs.DCSSDK_COMMAND_OPCODE opCode, java.lang.String inXML, java.lang.StringBuilder outXML, int scannerID)
Deprecated.Method provides synchronous execution of a particular method via an opcode.- Parameters:
opCode- Opcode for the commandinXML- Relevant argument list for the opcode, structured into an XML string.outXML- Results of method execution, structured into an XML string.scannerID- Unique identifier of a particular scanner assigned by SDK.- Returns:
- Success/Failure of the operation(One of
DCSSDKDefs.DCSSDK_RESULT)
-
dcssdkExecuteCommandOpCodeInXMLForScanner
DCSSDKDefs.DCSSDK_RESULT dcssdkExecuteCommandOpCodeInXMLForScanner(DCSSDKDefs.DCSSDK_COMMAND_OPCODE opCode, java.lang.String inXML, java.lang.StringBuilder outXML)
Method provides synchronous execution of a particular method via an opcode.- Parameters:
opCode- Opcode for the commandinXML- Relevant argument list for the opcode, structured into an XML string.outXML- Results of method execution, structured into an XML string.- Returns:
- Success/Failure of the operation(One of
DCSSDKDefs.DCSSDK_RESULT)
-
dcssdkExecuteCommandOpCodeInXMLForScanner
java.lang.String dcssdkExecuteCommandOpCodeInXMLForScanner(DCSSDKDefs.DCSSDK_COMMAND_OPCODE opCode, java.lang.String inXML)
Method provides synchronous execution of a particular method via an opcode.- Parameters:
opCode- Opcode for the commandinXML- Relevant argument list for the opcode, structured into an XML string.- Returns:
- outXma for execute command with given opcode and inXml.
-
dcssdkExecuteSSICommandOpCodeInXMLForScanner
DCSSDKDefs.DCSSDK_RESULT dcssdkExecuteSSICommandOpCodeInXMLForScanner(DCSSDKDefs.DCSSDK_COMMAND_OPCODE opCode, java.lang.String inXML, java.lang.StringBuilder outXML, int scannerID)
Method provides synchronous execution SSI command of a particular method via an opcode.- Parameters:
opCode- Opcode for the commandinXML- Relevant argument list for the opcode, structured into an XML string.outXML- Results of method execution, structured into an XML string.- Returns:
- Success/Failure of the operation(One of
DCSSDKDefs.DCSSDK_RESULT)
-
dcssdkGetPairingBarcode
BarCodeView dcssdkGetPairingBarcode(DCSSDKDefs.DCSSDK_BT_PROTOCOL bluetoothProtocol, DCSSDKDefs.DCSSDK_BT_SCANNER_CONFIG config)
Method provides pairing barcode for Bluetooth scanners- Parameters:
bluetoothProtocol- Protocol to be switchedconfig- Configuration to be used- Returns:
BarCodeView
-
dcssdkGetPairingBarcode
BarCodeView dcssdkGetPairingBarcode(DCSSDKDefs.DCSSDK_BT_PROTOCOL bluetoothProtocol, DCSSDKDefs.DCSSDK_BT_SCANNER_CONFIG config, java.lang.String bluetoothMAC)
Method provides pairing barcode for Bluetooth scanners- Parameters:
bluetoothProtocol- Protocol to be switchedconfig- Configuration to be usedbluetoothMAC- Bluetooth MAC address to be used- Returns:
BarCodeView
-
dcssdkGetUSBSNAPIWithImagingBarcode
BarCodeView dcssdkGetUSBSNAPIWithImagingBarcode()
Method provides connection barcode for USB scanners- Returns:
BarCodeView
-
dcssdkStartScanForTopologyChanges
DCSSDKDefs.DCSSDK_RESULT dcssdkStartScanForTopologyChanges()
Scan for topology changes- Returns:
- Success/Failure of the operation(One of
DCSSDKDefs.DCSSDK_RESULT)
-
dcssdkSetBTAddress
DCSSDKDefs.DCSSDK_RESULT dcssdkSetBTAddress(java.lang.String bluetoothMAC)
Method to set the Bluetooth address of the device. This address will be used when SDK cannot determine Bluetooth MAC address automatically.- Parameters:
bluetoothMAC- Bluetooth MAC address to be used- Returns:
- Success/Failure of the operation(One of
DCSSDKDefs.DCSSDK_RESULT)
-
dcssdkClearBTAddress
DCSSDKDefs.DCSSDK_RESULT dcssdkClearBTAddress()
Method to clear the Bluetooth address stored in SDK.- Returns:
- Success/Failure of the operation(One of
DCSSDKDefs.DCSSDK_RESULT)
-
dcssdkSetIDCConfig
DCSSDKDefs.DCSSDK_RESULT dcssdkSetIDCConfig(IDCConfig idcConfig)
Method to set the IDC configuration information for SDK. This configuration information is used to send either Binary Data event or seperate Image and Barcode events for IDC data.- Parameters:
idcConfig- IDCConfig Object which has IDC configuration information- Returns:
- Success/Failure of the operation(One of
DCSSDKDefs.DCSSDK_RESULT)
-
-