Public Member Functions | |
void | GetUrl (V2TIMValueCallback< V2TIMString > *callback) |
void | DownloadFile (const V2TIMString &path, V2TIMDownloadCallback *callback) |
V2TIMFileElem () | |
V2TIMFileElem (const V2TIMFileElem &) | |
V2TIMFileElem & | operator= (const V2TIMFileElem &) |
~V2TIMFileElem () override | |
Data Fields | |
V2TIMString | path |
V2TIMString | uuid |
V2TIMString | filename |
uint64_t | fileSize |
V2TIMElemType | elemType |
void * | obj_ptr |
V2TIMFileElem | ( | ) |
V2TIMFileElem | ( | const V2TIMFileElem & | ) |
|
override |
void GetUrl | ( | V2TIMValueCallback< V2TIMString > * | callback | ) |
Get the file download URL.
void DownloadFile | ( | const V2TIMString & | path, |
V2TIMDownloadCallback * | callback | ||
) |
Download a file
The downloadFile API downloads files from the server each time. If cache or storage is required, you can use UUIDs as keys for external storage. The IM SDK does not store resource files.
path | File save path, which must be specified externally |
V2TIMFileElem& operator= | ( | const V2TIMFileElem & | ) |
V2TIMString path |
Path to the local file sent(valid only for the message sender)
V2TIMString uuid |
File ID which is an internal ID and can be used as an external cache key.
V2TIMString filename |
File name.
uint64_t fileSize |
File size.
|
inherited |
element type
|
inherited |