The client framework uses a callback mechanism to notify the application when messages arrive from the server. Some examples of events that are sent include login success or failure, subscription success or failure, or a change to a MBO.
Register the callback object by executing:
MyCallbackHandler* theCallbackHandler = [MyCallbackHandler new];
[SampleApp_SampleAppDB registerCallbackHandler:theCallbackhandler];
What does ths means.. pleas help out?
It means that the method
registerCallbackHandler:accepts an object that conforms to a protocol (eg.SampleAppHandlerProtocol) that requires some methods to be implemented on yourMyCallbackHandlerclass definition. Practical example:In this way you must implement a class that conforms to
CallbackHandlerso thatSampleAppcan call yourreportSomethingFinishedfrom its code.