![Magtek Universal SDK Programmer'S Manual Download Page 37](http://html1.mh-extra.com/html/magtek/universal-sdk/universal-sdk_programmers-manual_3704653037.webp)
11 - IConfigurationCallback Delegates
MagTek Universal SDK| For MMS Devices | Programmer’s Manual ( Java )
Page 37
11
IConfigurationCallback Delegates
MagTek Universal SDK will invoke the callback function in this chapter to provide the requested data
and/or a detailed response. These events will be called in a class that implements the
interface.
11.1
OnCalculateMAC
This event is called when certain asynchronous
included with the request.
IResult OnCalculateMAC(
byte macType,
byte[] data);
Parameter
Description
macType
Type of Mac algorithm. For DynaFlex, use 0.
data
Contains the data of the payload to MAC.
Return Value:
Returns an IResult that contains the calculated MAC.
11.2
OnProgress
This event is called to update the host on the progress of an asynchronous
operation.
public void OnProgres(int progress);
Parameter
Description
progress
The progress of the configuration operation.
Range:
0 - 100
Return Value: None
11.3
OnResult
This event is called to update the host when an asynchronous
operation is
completed.
public void OnResult(
StatusCode status,
byte[] data);
Parameter
Description
status
An enumerated Library Status Codes.
data
Contains the data for the event.
Return Value: None