VKLegacyPlaylist

@objc
public class VKLegacyPlaylist : VKPlaylist, VKVideoRequestOperationDelegate

This class represents a playlist of videos

  • Declaration

    Swift

    @objc
    dynamic public var internalCount: Int

Public properties

  • Declaration

    Swift

    weak public var legacyDelegate: VKLegacyPlaylistDelegate?
  • The tags that defines this playlist

    Declaration

    Swift

    public fileprivate(set) var tags: Set<String> { get }
  • The metadata that defines this playlist

    Declaration

    Swift

    public fileprivate(set) var metadata: [String : String] { get }

Public methods

  • Gets the video object at index

    Declaration

    Swift

    public func asyncVideoAt(_ index: Int, completion: @escaping VKPlaylistVideoCompletion) -> VKCancellable

    Parameters

    index

    the index item to request

    completion

    the completion block to be called when the call is returned. If item exists then item will not be nil. Else item is nil.

  • Gets the video object at index, from cache synchronously.

    Declaration

    Swift

    override public func videoAt(_ index: Int) -> VKVideo?

    Parameters

    index

    the index item to request

Internal methods