Idevicecapabilities Walk Through - Magtek Universal SDK Programmer's Manual

Table of Contents

Advertisement

Appendix B - API Walk Through
B.5

IDeviceCapabilities Walk Through

The following walks through how to make use of Error! Reference source not found..
IDevice  IDeviceCapabilities.
IDeviceCapabilities  BatteryBackedClock() to check if date/time should be set.
IDeviceCapabilities  PaymentMethods() to check card types supported.
IDeviceCapabilities  other functions.
// Establish a device from CoreAPI.
List<IDevice> deviceList = CoreAPI.getDeviceList();
IDevice device = deviceList.get(0);
// Establish a IDeviceCapabilities from device.
IDeviceCapabilities capabilities = device.getCapabilities();
// Retrieve device capabilities.
boolean batteryBackedClock = capabilities.BatteryBackedClock();
if (batteryBackedClock)
{
// Call IDeviceControl.setDateTime().
}
// Retrieve supported card payment methods.
List<PaymentMethod> paymentMethods = capabilities.PaymentMethods();
. . .
MagTek Universal SDK| For MMS Devices | Programmer's Manual ( Java )
Page 52

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

Subscribe to Our Youtube Channel

Related Products for Magtek Universal SDK

Table of Contents