ArcGIS Runtime SDK for iOS: AGSServiceAreaTask.h Source File
ArcGIS Runtime SDK for iOS  100.15
AGSServiceAreaTask.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 
25 #import <Foundation/Foundation.h>
26 #import <ArcGIS/AGSLoadableRemoteResourceBase.h>
27 #import <ArcGIS/AGSAPIKeyResource.h>
28 #import <ArcGIS/AGSCancelable.h>
29 
30 
31 
35 @class AGSTask;
37  //Required for Globals API doc
39 
58 
59 #pragma mark -
60 #pragma mark initializers
61 
62 
63 
69 -(instancetype)initWithURL:(NSURL *)URL;
70 
76 +(instancetype)serviceAreaTaskWithURL:(NSURL *)URL;
77 
86 -(instancetype)initWithDataset:(AGSTransportationNetworkDataset *)dataset;
87 
96 +(instancetype)serviceAreaTaskWithDataset:(AGSTransportationNetworkDataset *)dataset;
97 
106 -(instancetype)initWithDatabaseName:(NSString*)databaseName networkName:(NSString*)networkName;
107 
116 +(instancetype)serviceAreaTaskWithDatabaseName:(NSString*)databaseName networkName:(NSString*)networkName;
117 
118 
127 -(instancetype)initWithFileURLToDatabase:(NSURL *)fileURLToDatabase networkName:(NSString *)networkName;
128 
137 +(instancetype)serviceAreaTaskWithFileURLToDatabase:(NSURL *)fileURLToDatabase networkName:(NSString *)networkName;
138 
139 #pragma mark -
140 #pragma mark properties
141 
146 @property (nullable, nonatomic, strong, readonly) AGSServiceAreaTaskInfo *serviceAreaTaskInfo;
147 
152 @property (nullable, nonatomic, strong, readonly) AGSTransportationNetworkDataset *transportationNetworkDataset;
153 
154 #pragma mark -
155 #pragma mark methods
156 
161 -(id<AGSCancelable>)defaultServiceAreaParametersWithCompletion:(void(^)(AGSServiceAreaParameters * __nullable serviceAreaParams, NSError * __nullable error))completion;
162 
168 -(id<AGSCancelable>)solveServiceAreaWithParameters:(AGSServiceAreaParameters*)serviceAreaParameters completion:(void(^)(AGSServiceAreaResult * __nullable serviceAreaResult, NSError * __nullable error))completion;
169 
170 @end
171 
172 
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:57
AGSTransportationNetworkDataset * transportationNetworkDataset
Definition: AGSServiceAreaTask.h:152
AGSServiceAreaTaskInfo * serviceAreaTaskInfo
Definition: AGSServiceAreaTask.h:146
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