summaryrefslogtreecommitdiff
path: root/include/mbgl/storage/offline.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/storage/offline.hpp')
-rw-r--r--include/mbgl/storage/offline.hpp10
1 files changed, 9 insertions, 1 deletions
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.