Low-Level C++ SDK
v1.3.0
|
Listens and notifies about middleware status changes. More...
#include <MiddlewareStatusListener.h>
Public Member Functions | |
MiddlewareStatusListener () | |
virtual void | OnMessageReceived (WeArtMessage *message) override |
Callback called when an accepted message is received. | |
void | AddStatusCallback (std::function< void(MiddlewareStatusUpdate)> callback) |
Adds a callback notified on every new status update from the middleware. | |
MiddlewareStatusUpdate | lastStatus () |
Gets the last status received. | |
Additional Inherited Members |
Listens and notifies about middleware status changes.
|
inline |
void MiddlewareStatusListener::AddStatusCallback | ( | std::function< void(MiddlewareStatusUpdate)> | callback | ) |
Adds a callback notified on every new status update from the middleware.
callback | Method called when the sdk receives a status update from the middleware |
MiddlewareStatusUpdate MiddlewareStatusListener::lastStatus | ( | ) |
Gets the last status received.
|
overridevirtual |
Callback called when an accepted message is received.
message | Received message |
Implements WeArtMessageListener.