DownloadManagement class

Provides tools to manage bulk downloading to a specific StoreDirectory

Is a singleton to ensure functioning as expected.

Constructors

DownloadManagement(StoreDirectory storeDirectory)
Provides tools to manage bulk downloading to a specific StoreDirectory
factory

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

cancel() Future<void>
Cancels the ongoing foreground download and recovery session (within the current object)
check(DownloadableRegion region) Future<int>
Check approximately how many downloadable tiles are within a specified DownloadableRegion
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestIgnoreBatteryOptimizations({bool requestIfDenied = true}) Future<bool>
Requests for app to be excluded from battery optimizations to aid running a background process
startBackground({required DownloadableRegion region, FMTCTileProviderSettings? tileProviderSettings, bool disableRecovery = false, String backgroundNotificationTitle = 'App Running In Background', String backgroundNotificationText = "Hide this notification by holding down and opening the notification's settings. Then disable this notification only.", AndroidResource? backgroundNotificationIcon, bool showProgressNotification = true, AndroidNotificationDetails? progressNotificationConfig, String progressNotificationIcon = '@mipmap/ic_notification_icon', String progressNotificationTitle = 'Downloading Map...', String progressNotificationBody(DownloadProgress)?}) Future<void>
Download a specified DownloadableRegion in the background, and show a progress notification (by default)
startForeground({required DownloadableRegion region, FMTCTileProviderSettings? tileProviderSettings, bool disableRecovery = false}) Stream<DownloadProgress>
Download a specified DownloadableRegion in the foreground
toString() String
A string representation of this object.
inherited

Operators

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