MTOfflineEstimator
public struct MTOfflineEstimator : Sendable
Provides estimation for offline pack size and resource counts.
-
Undocumented
Declaration
Swift
public init() -
estimatePack(region:Asynchronous) Estimates the size and resource count for a given region definition.
This method may fetch the style JSON and other metadata if needed to provide a more accurate estimate.
Throws
An error if style fetching or parsing fails.Declaration
Swift
public func estimatePack(region: MTOfflineRegionDefinition) async throws -> MTPackStatsParameters
regionThe definition of the region to estimate.
Return Value
An
MTPackStatsobject containing the estimates.