Coreapi; Getapiversion; Getdevice; Getdevicelist - Magtek Universal SDK Programmer's Manual

Table of Contents

Advertisement

3 - CoreAPI

3
CoreAPI
Use the CoreAPI to create an IDevice. IDevice is the bases for the MagTek Universal SDK.
If accessing a device specific API outside of MagTek Universal SDK, use the various functions in this
section to create an instance of that device's API. Once a device specific API is referenced, the
associated library will need to be added into the application's development project.
3.1

getAPIVersion

This function returns the version of the MagTek Universal SDK.
int CoreAPI.getAPIVersion();
Return Value:
Returns integer.
3.2

getDevice

This function returns an instance of a device.
IDevice CoreAPI.getDevice(
DeviceType deviceType,
ConnectionType connectionType,
String deviceAddress);
Parameter
deviceType
connectionType
deviceAddress
Return Value:
Returns an IDevice.
3.3

getDeviceList

This function returns a list of IDevice.
List<IDevice> CoreAPI.getDeviceList(DeviceType deviceType);
List<IDevice> CoreAPI.getDeviceList(DeviceType deviceType,
ConnectionType connectionType);
Parameter
deviceType
connectionType
MagTek Universal SDK| For MMS Devices | Programmer's Manual ( Java )
Page 12
Enumerated device type.
Enumerated connection type.
Address for the device.
For USB devices, address may be an empty string when only one device is
attached. Otherwise address should be in the form:
USB://DEVICESERIALNUMBER
for example, USB://99261829170E0810
Enumerated device type.
Enumerated connection type.
Description
Description

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Universal SDK and is the answer not in the manual?

Questions and answers

Related Products for Magtek Universal SDK

Table of Contents