Type Aliases
The following type aliases are available globally.
-
Declaration
Swift
public typealias ImageLoadingCallbackType = (VKImage?) -> Void
-
-
Declaration
Swift
public typealias VKImage = NSImage
-
Completion block definition when video objects are returned
Declaration
Swift
public typealias VKVideoItemCompletionBlock = (_ item: VKVideo?, _ error: Error?) -> Void
-
Declaration
Swift
public typealias VKPlaylistVideoCompletion = ((_ item: VKVideo?, _ error: Error?) -> Void)
-
Account completions block
Declaration
Swift
public typealias VKSessionStartCompletion = ((_ sessionState: VKSessionState, _ sessionData: VKSessionResponseDictonary, _ error: Error?) -> Void)
Parameters
accountState
That’s the account state that is returned
err
This is the error if `accountState == VKAccountStae.Error". Else it will be nil
-
Playlist request block definition that is passed for videos requests
Declaration
Swift
public typealias VKPlaylistRequestBlock = (VKLegacyPlaylist?, Error?) -> Void
-
Playlist request block definition that is passed for videos requests
Declaration
Swift
public typealias VKVideoRequestBlock = (VKVideo?, Error?) -> Void
-
Declaration
Swift
public typealias VKVideosRequestBlock = (VKVideosResponse?, Error?) -> Void
-
Declaration
Swift
public typealias VKVideoObject = VKVideo
-
Declaration
Swift
public typealias VKAccount = VKSession
-
Declaration
Swift
public typealias VKVideoPlaylist = VKLegacyPlaylist
-
Declaration
Swift
public typealias VKVideoPlaylistDelegate = VKLegacyPlaylistDelegate
-
Declaration
Swift
public typealias VKVideoPlaylistCancellationToken = VKPlaylistCancellationToken
-
Declaration
Swift
public typealias VKVideoStore = VKVideos
-
Declaration
Swift
public typealias VKVideoUpload = VKUploads
-
Declaration
Swift
public typealias VKStartSessionCompletionBlockDeprecated = (_ accountState: VKSessionState, _ err: Error?) -> Void
-
Declaration
Swift
public typealias VKSessionResponseDictonary = [String : Any]
-
Declaration
Swift
public typealias VKSessionCompletionBlock = (_ response: VKSessionResponseDictonary, _ err: Error?) -> Void
-
Declaration
Swift
public typealias VKDeleteStreamCompletionBlock = (_ response: [String : Any], _ err: Error?) -> Void
-
Declaration
Swift
public typealias VKStreamsCompletionBlock = (_ response: VKStream?, _ err: Error?) -> Void
-
Declaration
Swift
public typealias VKListStreamsCompletionBlock = (_ response: [VKStream], _ err: Error?) -> Void
-
Declaration
Swift
public typealias VKRequestDataStreamBlock = (_ data: Data, _ size: Int) -> Void
-
Declaration
Swift
public typealias VKRequestCompletionBlock = (_ object: Any?, _ err: Error?) -> Void
-
Declaration
Swift
public typealias VKVideoRequestCompletionBlock = (_ video: VKVideo?, _ err: Error?) -> Void
-
Declaration
Swift
public typealias VKVideosCountRequestCompletionBlock = (_ count: Int, _ err: Error?) -> Void
-
Declaration
Swift
public typealias VKVideosRequestCompletionBlock = (_ response: VKVideosResponse?, _ err: Error?) -> Void
-
Declaration
Swift
public typealias VKRequestSizeCompletionBlock = (_ size: Int, _ err: Error?) -> Void