Class IDataViewer

Inheritance Relationships

Base Type

  • public IModule

Class Documentation

class Microsoft::Applications::Events::IDataViewer : public IModule

This interface allows SDK users to register a data viewer that will receive all packets uploaded by the SDK.

Public Functions

virtual void ReceiveData(const std::vector<uint8_t> &packetData) noexcept = 0

This method allows SDK to pass the uploaded packet to the data viewer.

Parameters

packetData – HTTP Request Packet as a binary blob.

virtual const char *GetName() const noexcept = 0

Get the name of the current viewer.

virtual bool IsTransmissionEnabled() const noexcept = 0

Check if the current viewer is transmitting.

Returns

True if transmission is enabled, false otherwise.

virtual const std::string &GetCurrentEndpoint() const noexcept = 0

Get the current endpoint where the data is being streamed to.

Returns

const char* denoting the endpoint, empty string if not currently streaming.