AutoDownloadSettings class

Inheritance

Constructors

AutoDownloadSettings({bool isAutoDownloadEnabled, int maxPhotoFileSize, int maxVideoFileSize, int maxOtherFileSize, int videoUploadBitrate, bool preloadLargeVideos, bool preloadNextAudio, bool useLessDataForCalls})
Contains auto-download settings
AutoDownloadSettings.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
isAutoDownloadEnabled bool
isAutoDownloadEnabled True, if the auto-download is enabled
read / write
maxOtherFileSize int
maxOtherFileSize The maximum size of other file types to be auto-downloaded
read / write
maxPhotoFileSize int
maxPhotoFileSize The maximum size of a photo file to be auto-downloaded
read / write
maxVideoFileSize int
maxVideoFileSize The maximum size of a video file to be auto-downloaded
read / write
preloadLargeVideos bool
preloadLargeVideos True, if the beginning of video files needs to be preloaded for instant playback
read / write
preloadNextAudio bool
preloadNextAudio True, if the next audio track needs to be preloaded while the user is listening to an audio file
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
useLessDataForCalls bool
useLessDataForCalls True, if "use less data for calls" option needs to be enabled
read / write
videoUploadBitrate int
videoUploadBitrate The maximum suggested bitrate for uploaded videos
read / write

Methods

getConstructor() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Constants

CONSTRUCTOR → const String
'autoDownloadSettings'