All pages
Powered by GitBook
1 of 1

Loading...

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.

OnEvent handles most event types. The eventType parameter defines which event is triggered.

Return Value: None

Java Example:

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.

@Override
public void OnEvent(EventType eventType, IData data)
{
        // Event handler
}

OnEvent