RuntimeDataSubscriber

class kanzi::connect::RuntimeDataSubscriber : public ContentLoader::Observer

Utility class for receiving runtimedata along the existing connection to a server.

Unnamed Group

void onContentLoaded(ContentLoader *loader, ContentResult *result) override

See

kanzi::connect::ContentLoader::Observer

void onContentInvalidated(ContentLoader *loader) override

Callback to notify that previously loaded content is no longer valid.

Parameters
  • loader: Content loader that invalidated the content.

void onRuntimeDataUpdateReceived(ContentLoader *loader, const string &uri, const string &stream) override

Callback to notify when runtime data update is received.

Public Functions

RuntimeDataSubscriber(ContentClient::RuntimeDataResultCallbackFunction callback)

Constructor.

Parameters
  • callback: Callback function to be notified when data changes.