For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

OnEvent handles most event types. The 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
}

Last updated