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

Instance Methods

(void) - downloadImage:progress:succ:fail:
 

Properties

NSString * uuid
 
V2TIMImageType type
 
int size
 
int width
 
int height
 
NSString * url
 

Method Documentation

◆ downloadImage:progress:succ:fail:()

- (void) downloadImage: (NSString *)  path
progress: (V2TIMDownLoadProgress)  progress
succ: (V2TIMSucc)  succ
fail: (V2TIMFail)  fail 

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.

Property Documentation

◆ uuid

- (NSString*) uuid
readnonatomicstrong

Image ID.

◆ type

- (V2TIMImageType) type
readnonatomicassign

Image type.

◆ size

- (int) size
readnonatomicassign

Image file size.

◆ width

- (int) width
readnonatomicassign

Image width.

◆ height

- (int) height
readnonatomicassign

Image height.

◆ url

- (NSString*) url
readnonatomicstrong

Image download url.