DownloadManagerApi class
Constructors
- DownloadManagerApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''})
-
Constructor for DownloadManagerApi. The
binaryMessengernamed argument is available for dependency injection. If it is left null, the default BinaryMessenger will be used which routes to the host platform.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- pigeonVar_binaryMessenger → BinaryMessenger?
-
final
- pigeonVar_messageChannelSuffix → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
download(
Media media, String? customId) → Future< String?> - Returns a download id if task is created
-
getAllDownloads(
) → Future< List< String> > - Returns id's for all downloads
-
getStatusFor(
String id) → Future< DownloadData?> - Returns null if download not found
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
String id) → Future< void> -
removeAll(
) → Future< void> -
setAndroidDataSourceHeaders(
Map< String, String> headers) → Future<void> - ExoPlayer can't use per media headers
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
pigeonChannelCodec
→ const MessageCodec<
Object?>