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.
V2TIMImageabstract
Swift - V2TIMImage
Swift

Class V2TIMImage

public class V2TIMImage  

Definition of V2TIMImage

Initializers

init()

public init()  

Properties

description

public var description: String  

uuid

public var uuid: String?  

Image ID

type

public var type: V2TIMImageType  

Image type

size

public var size: Int  

Image file size

width

public var width: Int  

Image width

height

public var height: Int  

Image height

url

public var url: String?  

Image download url

Methods

download​Image(path:​progress:​succ:​fail:​)

public func downloadImage(path: String, progress: V2TIMDownLoadProgress?, succ: V2TIMSucc?, fail: V2TIMFail?)  

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

path String

Image save path, need to be specified externally.