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
indexDeclaration
Swift
public func asyncVideoAt(_ index: Int, completion: @escaping VKPlaylistVideoCompletion) -> VKCancellableParameters
indexthe index item to request
completionthe completion block to be called when the call is returned. If item exists then
itemwill not benil. Elseitemisnil. -
Gets the video object at
index, from cache synchronously.Declaration
Swift
override public func videoAt(_ index: Int) -> VKVideo?Parameters
indexthe 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?
VKLegacyPlaylist Class Reference