|
Twitch SDK (Internal)
|
#include <ichannelstatus.h>
Public Types | |
| using | UploadProfileImageCallback = std::function< void(TTV_ErrorCode ec, const std::vector< ProfileImage > &images)> |
Public Member Functions | |
| virtual | ~IChannelStatus ()=default |
| virtual TTV_ErrorCode | Dispose ()=0 |
| virtual TTV_ErrorCode | UploadProfileImage (const char *imageBuffer, size_t imageSize, const UploadProfileImageCallback &callback)=0 |
The interface for receiving general upates on a channel. Currently receives stream and profile image upload updates.
| using ttv::IChannelStatus::UploadProfileImageCallback = std::function<void(TTV_ErrorCode ec, const std::vector<ProfileImage>& images)> |
|
virtualdefault |
|
pure virtual |
This should be called when the application is done with the instance.
Implemented in ttv::ChannelStatus.
|
pure virtual |
Uploads a new profile image for the current user asynchronously. Only one request can be in progress at a time. This function will call HttpRequest::SendHttpRequest: the client implementation of this must be able to send raw bytes (and not apply any encoding such as UTF-16).
| [in] | imageBuffer | A buffer containing the image data to be uploaded. |
| [in] | size | The size of the image to be uploaded (in bytes). |
| [in] | callback | The callback to be called upon completion of the upload (whether successful or not) The callback has several error codes that it can return:
|
Implemented in ttv::ChannelStatus.
1.8.13