VKUploads
@objc
public class VKUploads : NSObject
-
Declaration
Swift
@objc public static let shared: VKUploads -
Declaration
Swift
@objc public var uploads: [VKUpload] -
Uploads video file to storage and creates new video object using it.
Declaration
Swift
public func upload(usingFileUrl url: URL, withTitle title: String?, withTags tags: Set<String>?, withMetadata metadata: [String : String]?, completion: @escaping VKVideoRequestBlock)Parameters
urlURL to local video file
titleVideo title
tagsSet of tags for new video
metadataDictionary of metadata for new video
completionThis is the completion block to be called when the video object is created. Video file was succesfully proceed then a
VKVideois returned. Else nil is returned with an error included -
Declaration
Swift
public func cancelUpload(videoID: String)
VKUploads Class Reference