ArcGIS Runtime SDK for iOS: AGSTileCache.h Source File
ArcGIS Runtime SDK for iOS  100.15
AGSTileCache.h
Go to the documentation of this file.
1 /*
2  COPYRIGHT 2022 ESRI
3 
4  All rights reserved under the copyright laws of the United States
5  and applicable international laws, treaties, and conventions.
6 
7  This material is licensed for use under the Esri Master License
8  Agreement (MLA), and is bound by the terms of that agreement.
9  You may redistribute and use this code without modification,
10  provided you adhere to the terms of the MLA and include this
11  copyright notice.
12 
13  See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english
14 
15  For additional information, contact:
16  Environmental Systems Research Institute, Inc.
17  Attn: Contracts and Legal Services Department
18  380 New York Street
19  Redlands, California, 92373
20  USA
21 
22  email: contracts@esri.com
23  */
24  //Required for Globals API doc
26 
27 #import <Foundation/Foundation.h>
28 #import <ArcGIS/AGSLoadableBase.h>
29 #import <ArcGIS/AGSImage.h>
30 
31 
32 
37 typedef NS_ENUM(NSInteger, AGSCacheStorageFormat) {
42 };
43 
44 @class AGSTileInfo;
45 @class AGSEnvelope;
46 @class AGSTileKey;
47 
80 @interface AGSTileCache : AGSLoadableBase <NSCopying>
81 
82 #pragma mark -
83 #pragma mark initializers
84 
85 
86 
93 -(instancetype)initWithFileURL:(NSURL*)fileURL;
94 
102 -(instancetype)initWithName:(NSString*)name;
103 
110 +(instancetype)tileCacheWithFileURL:(NSURL*)fileURL;
111 
119 +(instancetype)tileCacheWithName:(NSString*)name;
120 
121 #pragma mark -
122 #pragma mark properties
123 
127 @property (nonatomic, assign, readonly) BOOL antialiasing;
128 
132 @property (nonatomic, assign, readonly) AGSCacheStorageFormat cacheStorageFormat;
133 
138 @property (nonatomic, strong, readonly) NSURL *fileURL;
139 
143 @property (nullable, nonatomic, strong, readonly) AGSImage *thumbnail;
144 
148 @property (nullable, nonatomic, strong, readonly) AGSTileInfo *tileInfo;
149 
153 @property (nullable, nonatomic, strong, readonly) AGSEnvelope *fullExtent;
154 
155 #pragma mark -
156 #pragma mark methods
157 
163 - (nullable NSData *)tileDataWithTileKey:(AGSTileKey *)tileKey;
164 
165 @end
166 
167 
#define AGSImage
Definition: AGSImage.h:34
AGSCacheStorageFormat
Definition: AGSTileCache.h:37
@ AGSCacheStorageFormatCompact
Definition: AGSTileCache.h:38
@ AGSCacheStorageFormatExploded
Definition: AGSTileCache.h:40
@ AGSCacheStorageFormatCompactV2
Definition: AGSTileCache.h:39
@ AGSCacheStorageFormatUnknown
Definition: AGSTileCache.h:41
A geometry that represents a rectangular shape.
Definition: AGSEnvelope.h:55
A base class for loadables.
Definition: AGSLoadableBase.h:45
A local cache of pre-rendered map tiles that can be used to create a layer.
Definition: AGSTileCache.h:80
AGSTileInfo * tileInfo
Definition: AGSTileCache.h:148
BOOL antialiasing
Definition: AGSTileCache.h:127
AGSEnvelope * fullExtent
Definition: AGSTileCache.h:153
AGSCacheStorageFormat cacheStorageFormat
Definition: AGSTileCache.h:132
NSURL * fileURL
Definition: AGSTileCache.h:138
AGSImage * thumbnail
Definition: AGSTileCache.h:143
The tiling scheme of a tiled layer.
Definition: AGSTileInfo.h:45
A tile key.
Definition: AGSTileKey.h:38