Public Member Functions | |
void | DownloadImage (const V2TIMString &path, V2TIMDownloadCallback *callback) |
V2TIMImage () | |
V2TIMImage (const V2TIMImage &) | |
~V2TIMImage () | |
Data Fields | |
V2TIMString | uuid |
V2TIMImageType | type |
uint64_t | size |
uint32_t | width |
uint32_t | height |
V2TIMString | url |
V2TIMImage | ( | ) |
V2TIMImage | ( | const V2TIMImage & | ) |
~V2TIMImage | ( | ) |
void DownloadImage | ( | const V2TIMString & | path, |
V2TIMDownloadCallback * | callback | ||
) |
Download image
The downloaded image needs to be cached by the developer. IM SDK will re-download the image from the server every time when downloadImage is called. It is recommended to use the uuid of the image as the key to store the image file.
path | Image save path, need to be specified externally. |
V2TIMString uuid |
Image ID.
V2TIMImageType type |
Image type.
uint64_t size |
Image file size.
uint32_t width |
Image width.
uint32_t height |
Image height.
V2TIMString url |
Image download url.