ArcGIS Runtime SDK for iOS: AGSTileCache.h Source File
ArcGIS Runtime SDK for iOS  100.11
AGSTileCache.h
Go to the documentation of this file.
1 /*
2  COPYRIGHT 2021 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 
79 @interface AGSTileCache : AGSLoadableBase <NSCopying>
80 
81 #pragma mark -
82 #pragma mark initializers
83 
84 
85 
92 -(instancetype)initWithFileURL:(NSURL*)fileURL;
93 
101 -(instancetype)initWithName:(NSString*)name;
102 
109 +(instancetype)tileCacheWithFileURL:(NSURL*)fileURL;
110 
118 +(instancetype)tileCacheWithName:(NSString*)name;
119 
120 #pragma mark -
121 #pragma mark properties
122 
126 @property (nonatomic, assign, readonly) BOOL antialiasing;
127 
131 @property (nonatomic, assign, readonly) AGSCacheStorageFormat cacheStorageFormat;
132 
137 @property (nonatomic, strong, readonly) NSURL *fileURL;
138 
142 @property (nullable, nonatomic, strong, readonly) AGSImage *thumbnail;
143 
147 @property (nullable, nonatomic, strong, readonly) AGSTileInfo *tileInfo;
148 
152 @property (nullable, nonatomic, strong, readonly) AGSEnvelope *fullExtent;
153 
154 #pragma mark -
155 #pragma mark methods
156 
157 @end
158 
159 
#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:79
AGSTileInfo * tileInfo
Definition: AGSTileCache.h:147
BOOL antialiasing
Definition: AGSTileCache.h:126
AGSEnvelope * fullExtent
Definition: AGSTileCache.h:152
AGSCacheStorageFormat cacheStorageFormat
Definition: AGSTileCache.h:131
NSURL * fileURL
Definition: AGSTileCache.h:137
AGSImage * thumbnail
Definition: AGSTileCache.h:142
The tiling scheme of a tiled layer.
Definition: AGSTileInfo.h:45