Skip to main content

Module offline

Module offline 

Source

Structs§

OfflineGeometryRegionDefinition
An offline region defined by a style URL, geometry, zoom range, and device pixel ratio.
OfflineRegion
A region in the offline database.
OfflineRegionExpiry
How long a region’s stored resources stay usable, from their caching rules.
OfflineRegionStatus
A region’s status: its active/inactive state, the number of resources that have completed downloading and their total size in bytes, and the total number of resources that are required.
OfflineTilePyramidRegionDefinition
An offline region defined by a style URL, geographic bounding box, zoom range, and device pixel ratio.

Enums§

OfflineRegionDefinition
The offline region definition types supported (std::variant<OfflineTilePyramidRegionDefinition, OfflineGeometryRegionDefinition>).
OfflineRegionDownloadState
A region is either inactive (not downloading, but previously-downloaded resources are available for use), or active (resources are being downloaded or will be downloaded, if necessary, when network access is available).

Traits§

OfflineRegionObserver
A region can have a single observer, which gets notified whenever a change to the region’s status occurs. The methods run on the database thread. They take &self: the download calls them re-entrantly, e.g. an observer that deactivates the download from status_changed gets a nested status_changed.

Type Aliases§

OfflineRegionMetadata
Arbitrary binary region metadata. The contents are opaque to the mbgl implementation; it just stores and retrieves a BLOB.