ArcGIS Runtime SDK for iOS: AGSServiceAreaTask.h Source File
ArcGIS Runtime SDK for iOS  100.11
AGSServiceAreaTask.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 
34 @class AGSTask;
36 
37 @protocol AGSCancelable;
38  //Required for Globals API doc
40 
59 
60 #pragma mark -
61 #pragma mark initializers
62 
63 
64 
70 -(instancetype)initWithURL:(NSURL *)URL;
71 
77 +(instancetype)serviceAreaTaskWithURL:(NSURL *)URL;
78 
87 -(instancetype)initWithDataset:(AGSTransportationNetworkDataset *)dataset;
88 
97 +(instancetype)serviceAreaTaskWithDataset:(AGSTransportationNetworkDataset *)dataset;
98 
107 -(instancetype)initWithDatabaseName:(NSString*)databaseName networkName:(NSString*)networkName;
108 
117 +(instancetype)serviceAreaTaskWithDatabaseName:(NSString*)databaseName networkName:(NSString*)networkName;
118 
119 
128 -(instancetype)initWithFileURLToDatabase:(NSURL *)fileURLToDatabase networkName:(NSString *)networkName;
129 
138 +(instancetype)serviceAreaTaskWithFileURLToDatabase:(NSURL *)fileURLToDatabase networkName:(NSString *)networkName;
139 
140 #pragma mark -
141 #pragma mark properties
142 
147 @property (nullable, nonatomic, strong, readonly) AGSServiceAreaTaskInfo *serviceAreaTaskInfo;
148 
153 @property (nullable, nonatomic, strong, readonly) AGSTransportationNetworkDataset *transportationNetworkDataset;
154 
155 #pragma mark -
156 #pragma mark methods
157 
162 -(id<AGSCancelable>)defaultServiceAreaParametersWithCompletion:(void(^)(AGSServiceAreaParameters * __nullable serviceAreaParams, NSError * __nullable error))completion;
163 
169 -(id<AGSCancelable>)solveServiceAreaWithParameters:(AGSServiceAreaParameters*)serviceAreaParameters completion:(void(^)(AGSServiceAreaResult * __nullable serviceAreaResult, NSError * __nullable error))completion;
170 
171 @end
172 
173 
Definition: AGSLoadableRemoteResourceBase.h:35
Input parameters for AGSServiceAreaTask.
Definition: AGSServiceAreaParameters.h:49
Result returned by AGSServiceAreaTask.
Definition: AGSServiceAreaResult.h:45
A task to calculate service areas.
Definition: AGSServiceAreaTask.h:58
AGSTransportationNetworkDataset * transportationNetworkDataset
Definition: AGSServiceAreaTask.h:153
AGSServiceAreaTaskInfo * serviceAreaTaskInfo
Definition: AGSServiceAreaTask.h:147
Metadata about the network analyst service or dataset used by AGSServiceAreaTask.
Definition: AGSServiceAreaTaskInfo.h:44
A transportation network dataset.
Definition: AGSTransportationNetworkDataset.h:37
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