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
isAutoDownloadEnabled
True, if the auto-download is enabled
maxPhotoFileSize
The maximum size of a photo file to be auto-downloaded
maxVideoFileSize
The maximum size of a video file to be auto-downloaded
maxOtherFileSize
The maximum size of other file types to be auto-downloaded
videoUploadBitrate
The maximum suggested bitrate for uploaded videos
preloadLargeVideos
True, if the beginning of videos needs to be preloaded for instant playback
preloadNextAudio
True, if the next audio track needs to be preloaded while the user is listening to an audio file
useLessDataForCalls
True, if “use less data for calls” option needs to be enabled