diff options
Diffstat (limited to 'include/mbgl')
-rw-r--r-- | include/mbgl/storage/default_file_source.hpp | 5 | ||||
-rw-r--r-- | include/mbgl/storage/offline.hpp | 10 |
2 files changed, 14 insertions, 1 deletions
diff --git a/include/mbgl/storage/default_file_source.hpp b/include/mbgl/storage/default_file_source.hpp index 6ce7e8c6f9..b4c318bb1c 100644 --- a/include/mbgl/storage/default_file_source.hpp +++ b/include/mbgl/storage/default_file_source.hpp @@ -85,6 +85,11 @@ public: void setOfflineRegionObserver(OfflineRegion&, std::unique_ptr<OfflineRegionObserver>); /* + * Provides additional hints when dowloading offline regions. + */ + void setOfflineRegionDownloadOptions(OfflineRegion&, OfflineRegionDownloadOptions); + + /* * Pause or resume downloading of regional resources. */ void setOfflineRegionDownloadState(OfflineRegion&, OfflineRegionDownloadState); diff --git a/include/mbgl/storage/offline.hpp b/include/mbgl/storage/offline.hpp index b4e40cb5f3..0e971f6d36 100644 --- a/include/mbgl/storage/offline.hpp +++ b/include/mbgl/storage/offline.hpp @@ -91,12 +91,20 @@ using OfflineRegionMetadata = std::vector<uint8_t>; * is currently available for offline use. To check if that is the case, use * `OfflineRegionStatus::complete()`. */ -enum class OfflineRegionDownloadState { +enum class OfflineRegionDownloadState : bool { Inactive, Active }; /* + * Provides additional hints when downloading offline regions. + */ +enum class OfflineRegionDownloadOptions : uint8_t { + DefaultOptions = 0, + StyleOptimizedTiles = 1 << 0 +}; + +/* * A region's status includes its active/inactive state as well as counts * of the number of resources that have completed downloading, their total * size in bytes, and the total number of resources that are required. |