10 - IEventSubscriber Delegates
MagTek Universal SDK| For MMS Devices | Programmer’s Manual ( Java )
Page 36
10
IEventSubscriber Delegates
MagTeK Universal SDK will invoke the callback function in this chapter to provide the requested data
and/or a detailed response. To delegate the event, call the
function with the name of a class
that implements the
10.1
OnEvent
eventType
parameter defines which event is triggered.
public void OnEvent(
EventType eventType,
IData data);
Parameter
Description
eventType
An enumeration indicating the event triggered by the device.
data
Contains the data for the event.
Return Value: None
Java Example:
@Override
public void OnEvent(EventType eventType, IData data)
{
// Event handler
}