10 - IEventSubscriber Delegates
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 subscribeAll function with the name of a class
that implements the IEventSubscriber Delegates interface.
10.1 OnEvent
OnEvent handles most event types. The eventType parameter defines which event is triggered.
public void OnEvent(
EventType eventType,
IData data);
Parameter
eventType
data
Return Value: None
Java Example:
@Override
public void OnEvent(EventType eventType, IData data)
{
// Event handler
}
MagTek Universal SDK| For MMS Devices | Programmer's Manual ( Java )
Page 36
An enumeration indicating the event triggered by the device.
Contains the data for the event.
Description
Need help?
Do you have a question about the Universal SDK and is the answer not in the manual?
Questions and answers