Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved


Chapter 4 AMI API : AMI Method Classes : AmiAsyncMethod::onData()

AmiAsyncMethod::onData()
Method
Declaration
void onData();
Purpose
This method sends data asynchronously when an event occurs.
Remarks
This method goes through the session context list and sends the data returned by AmiMethod::onInvoke() to the appropriate subscription based on the varying input parameters calculated in AmiMethod::onInvoke(). This method tracks the context in a way that is transparent to the users.
If not interested in the context or subscription, you must not return any data or call to AmiParamterListOut::newRow() in AmiMethod::onInvoke() . However, the method should not be suppressed.
It is the user’s responsibility to invoke this method when the event occurs.

Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved