AutoDownloadSettings class

Implemented types

Constructors

AutoDownloadSettings({bool isAutoDownloadEnabled, int maxPhotoFileSize, int maxVideoFileSize, int maxOtherFileSize, bool preloadLargeVideos, bool preloadNextAudio, bool useLessDataForCalls})
Contains auto-download settings. isAutoDownloadEnabled True, if the auto-download is enabled. maxPhotoFileSize Maximum size of a photo file to be auto-downloaded. maxVideoFileSize Maximum size of a video file to be auto-downloaded. maxOtherFileSize Maximum size of other file types to be auto-downloaded. 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
AutoDownloadSettings.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
isAutoDownloadEnabled bool
read / write
maxOtherFileSize int
read / write
maxPhotoFileSize int
read / write
maxVideoFileSize int
read / write
preloadLargeVideos bool
read / write
preloadNextAudio bool
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
useLessDataForCalls bool
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
Returns a string representation of this object.
inherited

Operators

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

Constants

CONSTRUCTOR → const String
"autoDownloadSettings"