IMSDK
IM features a comprehensive suite of solutions including global access, one-to-one chat, group chat, message push, profile and relationship chain hosting, and account authentication. It also provides complete app access and backend management APIs.
V2TIMImage

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
 

Constructor & Destructor Documentation

◆ V2TIMImage() [1/2]

◆ V2TIMImage() [2/2]

V2TIMImage ( const V2TIMImage )

◆ ~V2TIMImage()

~V2TIMImage ( )

Member Function Documentation

◆ DownloadImage()

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.

Parameters
pathImage save path, need to be specified externally.

Field Documentation

◆ uuid

Image ID.

◆ type

Image type.

◆ size

uint64_t size

Image file size.

◆ width

uint32_t width

Image width.

◆ height

uint32_t height

Image height.

◆ url

Image download url.