AutoDownloadSettings
public struct AutoDownloadSettings : Codable, Equatable, FunctionResult
Contains auto-download settings
-
True, if the auto-download is enabled
Declaration
Swift
public let isAutoDownloadEnabled: Bool -
The maximum size of a photo file to be auto-downloaded
Declaration
Swift
public let maxPhotoFileSize: Int32 -
The maximum size of a video file to be auto-downloaded
Declaration
Swift
public let maxVideoFileSize: Int32 -
The maximum size of other file types to be auto-downloaded
Declaration
Swift
public let maxOtherFileSize: Int32 -
The maximum suggested bitrate for uploaded videos
Declaration
Swift
public let videoUploadBitrate: Int32 -
True, if the beginning of videos needs to be preloaded for instant playback
Declaration
Swift
public let preloadLargeVideos: Bool -
True, if the next audio track needs to be preloaded while the user is listening to an audio file
Declaration
Swift
public let preloadNextAudio: Bool -
True, if “use less data for calls” option needs to be enabled
Declaration
Swift
public let useLessDataForCalls: Bool -
init(isAutoDownloadEnabled:maxPhotoFileSize:maxVideoFileSize:maxOtherFileSize:videoUploadBitrate:preloadLargeVideos:preloadNextAudio:useLessDataForCalls:)Contains auto-download settings
Declaration
Swift
public init(isAutoDownloadEnabled: Bool, maxPhotoFileSize: Int32, maxVideoFileSize: Int32, maxOtherFileSize: Int32, videoUploadBitrate: Int32, preloadLargeVideos: Bool, preloadNextAudio: Bool, useLessDataForCalls: Bool)Parameters
isAutoDownloadEnabledTrue, if the auto-download is enabled
maxPhotoFileSizeThe maximum size of a photo file to be auto-downloaded
maxVideoFileSizeThe maximum size of a video file to be auto-downloaded
maxOtherFileSizeThe maximum size of other file types to be auto-downloaded
videoUploadBitrateThe maximum suggested bitrate for uploaded videos
preloadLargeVideosTrue, if the beginning of videos needs to be preloaded for instant playback
preloadNextAudioTrue, if the next audio track needs to be preloaded while the user is listening to an audio file
useLessDataForCallsTrue, if “use less data for calls” option needs to be enabled
View on GitHub
Install in Dash
AutoDownloadSettings Structure Reference