ArcGIS Runtime SDK for iOS: AGSExportVectorTilesTask.h Source File
ArcGIS Runtime SDK for iOS  100.11
AGSExportVectorTilesTask.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 
25 #import <Foundation/Foundation.h>
26 #import <ArcGIS/AGSLoadableRemoteResourceBase.h>
27 #import <ArcGIS/AGSAPIKeyResource.h>
28 
29 
30 
31 @class AGSPortalItem;
35 @class AGSGeometry;
36 
37 @protocol AGSCancelable;
38  //Required for Globals API doc
40 
67 
68 #pragma mark -
69 #pragma mark initializers
70 
71 
72 
78 -(instancetype)initWithPortalItem:(AGSPortalItem *)portalItem;
79 
93 -(instancetype)initWithURL:(NSURL *)URL;
94 
102 +(instancetype)exportVectorTilesTaskWithPortalItem:(AGSPortalItem *)portalItem;
103 
118 +(instancetype)exportVectorTilesTaskWithURL:(NSURL *)URL;
119 
120 #pragma mark -
121 #pragma mark properties
122 
135 @property (nullable, nonatomic, strong, readonly) NSURL *URL;
136 
142 @property (nonatomic, assign, readonly) BOOL hasStyleResources;
143 
149 @property (nullable, nonatomic, strong, readonly) AGSPortalItem *portalItem;
150 
155 @property (nullable, nonatomic, strong, readonly) AGSVectorTileSourceInfo *vectorTileSourceInfo;
156 
157 #pragma mark -
158 #pragma mark methods
159 
172 -(id<AGSCancelable>)defaultExportVectorTilesParametersWithAreaOfInterest:(AGSGeometry *)areaOfInterest
173  maxScale:(double)maxScale
174  completion:(void(^)(AGSExportVectorTilesParameters * __nullable params, NSError * __nullable error))completion;
175 
176 
184 -(AGSExportVectorTilesJob*)exportStyleResourceCacheJobWithDownloadDirectory:(NSURL*)downloadDirectory;
185 
186 
195 -(AGSExportVectorTilesJob*)exportVectorTilesJobWithParameters:(AGSExportVectorTilesParameters*)parameters
196  downloadFileURL:(NSURL *)downloadFileURL;
197 
198 
209 -(AGSExportVectorTilesJob*)exportVectorTilesJobWithParameters:(AGSExportVectorTilesParameters*)parameters
210  vectorTileCacheDownloadFileURL:(NSURL *)vectorTileCacheDownloadFileURL
211  itemResourceCacheDownloadDirectory:(NSURL*)itemResourceCacheDownloadDirectory;
212 
213 @end
214 
215 
NSURL * URL
Definition: AGSElevationServiceInfo.h:73
A job to export a tile cache or item resource cache from an ArcGIS Vector Tile service.
Definition: AGSExportVectorTilesJob.h:44
Parameters for the operations on AGSExportVectorTilesTask.
Definition: AGSExportVectorTilesParameters.h:69
A task used to export vector tiles and optionally a portal item's vector tile style resources.
Definition: AGSExportVectorTilesTask.h:66
AGSPortalItem * portalItem
Definition: AGSExportVectorTilesTask.h:149
BOOL hasStyleResources
Definition: AGSExportVectorTilesTask.h:142
AGSVectorTileSourceInfo * vectorTileSourceInfo
Definition: AGSExportVectorTilesTask.h:155
Base class for all classes that represent geometric shapes.
Definition: AGSGeometry.h:121
Definition: AGSLoadableRemoteResourceBase.h:35
Object representing a unit of content in an ArcGIS portal.
Definition: AGSPortalItem.h:93
Metadata about a source of vector tiles.
Definition: AGSVectorTileSourceInfo.h:44
An interface for getting and setting the API key of an object.
Definition: AGSAPIKeyResource.h:36
A protocol exposed by operations that allow cancellation.
Definition: AGSCancelable.h:38