Struct OfflineRegionStatus
- Namespace
- Maplibre.NativeFfi
- Assembly
- Maplibre.NativeFfi.dll
The download progress of an offline region.
public readonly record struct OfflineRegionStatus : IEquatable<OfflineRegionStatus>
- Implements
- Inherited Members
Remarks
See mln_offline_region_status in the C API reference.
Constructors
OfflineRegionStatus(OfflineRegionDownloadState, ulong, ulong, ulong, ulong, ulong, ulong, bool, bool)
The download progress of an offline region.
public OfflineRegionStatus(OfflineRegionDownloadState DownloadState, ulong CompletedResourceCount, ulong CompletedResourceSize, ulong CompletedTileCount, ulong RequiredTileCount, ulong CompletedTileSize, ulong RequiredResourceCount, bool RequiredResourceCountIsPrecise, bool Complete)
Parameters
DownloadStateOfflineRegionDownloadStateCompletedResourceCountulongThe resources downloaded so far, tiles included.
CompletedResourceSizeulongThe size of the downloaded resources in bytes, tiles included.
CompletedTileCountulongRequiredTileCountulongCompletedTileSizeulongThe size of the downloaded tiles in bytes.
RequiredResourceCountulongThe resources that the region needs, tiles included. Until
required_resource_count_is_preciseis true, this is only a lower bound.RequiredResourceCountIsPreciseboolCompleteboolWhether the region has downloaded every resource it needs.
Remarks
See mln_offline_region_status in the C API reference.
Properties
Complete
Whether the region has downloaded every resource it needs.
public bool Complete { get; init; }
Property Value
CompletedResourceCount
The resources downloaded so far, tiles included.
public ulong CompletedResourceCount { get; init; }
Property Value
CompletedResourceSize
The size of the downloaded resources in bytes, tiles included.
public ulong CompletedResourceSize { get; init; }
Property Value
CompletedTileCount
public ulong CompletedTileCount { get; init; }
Property Value
CompletedTileSize
The size of the downloaded tiles in bytes.
public ulong CompletedTileSize { get; init; }
Property Value
DownloadState
public OfflineRegionDownloadState DownloadState { get; init; }
Property Value
RequiredResourceCount
The resources that the region needs, tiles included. Until
required_resource_count_is_precise is true, this is only a lower
bound.
public ulong RequiredResourceCount { get; init; }
Property Value
RequiredResourceCountIsPrecise
public bool RequiredResourceCountIsPrecise { get; init; }
Property Value
RequiredTileCount
public ulong RequiredTileCount { get; init; }