NativeFlutterDownloader class

Constructors

NativeFlutterDownloader()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

progressStream Stream<DownloadProgress>
no setter

Static Methods

attachDownloadProgress(int downloadId) Future<void>
Attach the download progress stream to an untracked download task.
cancel(List<int> downloadIds) Future<int>
Cancels a list of ongoing downloads and return the number of canceled tasks
download(String url, {Map<String, String>? headers, String? fileName, String? savedFilePath}) Future<int>
Create and starts a downlaod task on a local URLSession on iOS or on the system download manager on Android
initialize() Future<void>
Initializes the plugin and open the stream to listen to download progress
requestPermission() Future<StoragePermissionStatus>
Requests storage permission on Android