summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLOfflineRegion.h
blob: ad9731eb333122498e2ed4789fdf0806d3a13aeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@class MGLTileSource;

/**
 An object conforming to the `MGLOfflineRegion` protocol determines which
 resources are required by an `MGLOfflinePack` object. At present, only
 instances of `MGLTilePyramidOfflineRegion` may be used as `MGLOfflinePack`
 regions, but additional conforming implementations may be added in the future.
 */
@protocol MGLOfflineRegion <NSObject>

/**
 The number of tiles needed to load one of the style’s sources within the region.
 */
-(uint64_t)countTilesForTileSource:(MGLTileSource *)tileSource;

@end

NS_ASSUME_NONNULL_END