![Magtek Universal SDK Скачать руководство пользователя страница 50](http://html1.mh-extra.com/html/magtek/universal-sdk/universal-sdk_programmers-manual_3704653050.webp)
Appendix B - API Walk Through
MagTek Universal SDK| For MMS Devices | Programmer’s Manual ( Java )
Page 50
B.3
IDeviceControl Walk Through
The following walks through how to make use of
IDevice
IDeviceControl.
IDeviceControl
open().
IDeviceControl
other functions.
IDeviceControl
close().
Example
// Establish a device from CoreAPI.
List<IDevice> deviceList = CoreAPI.getDeviceList();
IDevice device = deviceList.get(0);
// Establish a deviceControl from device.
IDeviceControl deviceControl = device.getDeviceControl();
// Open the device, then use the IDeviceControl functions.
deviceControl.open();
. . .
// Close the device.
deviceControl.close();