VKLegacyPlaylist
@objc
public class VKLegacyPlaylist : VKPlaylist, VKVideoRequestOperationDelegate
This class represents a playlist of videos
-
Declaration
Swift
@objc dynamic public var internalCount: Int
-
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 }
-
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 benil
. Elseitem
isnil
. -
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
-
Sync server changes of playlist to client.
Declaration
Swift
open func sync(completion: @escaping (_ success: Bool) -> Void)
-
Declaration
Swift
public func itemAtIndex(_ index: Int, completion: @escaping ((_ item: VKVideo?, _ error: Error?) -> Void)) -> VKCancellable
-
Declaration
Swift
public func itemAtIndexCached(_ index: Int) -> VKVideo?