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.