Class
V2TIMFileElem
public class V2TIMFileElem : V2TIMElem
Definition of V2TIMFileElem
Relationships
Superclass
V2TIMElem
Definition of V2TIMElem
Initializers
init()
public override init()
Properties
uuid
public var uuid: String?
File ID which is an internal ID and can be used as an external cache key
Methods
getUrl(callback:)
public func getUrl(callback: @escaping (String?) -> (Void))
Get the file download URL
downloadFile(path:progress:succ:fail:)
public func downloadFile(path: String, progress: V2TIMDownLoadProgress?, succ: V2TIMSucc?, fail: V2TIMFail?)
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.
Parameters
Name | Type | Description |
---|---|---|
path | String |
File save path, which must be specified externally |