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

    url

    URL to local video file

    title

    Video title

    tags

    Set of tags for new video

    metadata

    Dictionary of metadata for new video

    completion

    This is the completion block to be called when the video object is created. Video file was succesfully proceed then a VKVideo is returned. Else nil is returned with an error included

  • Declaration

    Swift

    public func cancelUpload(videoID: String)