ArcGIS Runtime SDK for iOS: AGSGeoprocessingDataFile.h Source File
ArcGIS Runtime SDK for iOS  100.11
AGSGeoprocessingDataFile.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/AGSGeoprocessingParameter.h>
27 
28 @protocol AGSCancelable;
29  //Required for Globals API doc
31 
40 
41 
42 #pragma mark -
43 #pragma mark initializers
44 
45 
50 -(instancetype)initWithURL:(NSURL*)URL;
51 
52 -(instancetype)initWithInputFileURL:(NSURL*)inputFileURL;
53 
54 -(instancetype)initWithUploadID:(NSString*)uploadID;
55 
56 +(instancetype)geoprocessingDataFile;
57 
62 +(instancetype)geoprocessingDataFileWithURL:(NSURL*)URL;
63 
64 +(instancetype)geoprocessingDataFileWithInputFileURL:(NSURL*)inputFileURL;
65 
66 +(instancetype)geoprocessingDataFileWithUploadID:(NSString*)uploadID;
67 
68 #pragma mark -
69 #pragma mark properties
70 
74 @property (nullable, nonatomic, strong, readwrite) NSURL *URL;
75 
83 @property (nullable, nonatomic, strong, readwrite) NSURL *inputFileURL;
84 
92 @property (nonatomic, copy, readwrite) NSString *uploadID;
93 
94 #pragma mark -
95 #pragma mark methods
96 
102 -(id<AGSCancelable>)downloadToFileURL:(NSURL*)fileURL completion:(void(^)(NSURL * __nullable fileURL, NSError * __nullable error))completion;
103 
104 
105 @end
NSURL * URL
Definition: AGSElevationServiceInfo.h:73
A geoprocessing parameter for files.
Definition: AGSGeoprocessingDataFile.h:40
NSString * uploadID
Definition: AGSGeoprocessingDataFile.h:92
NSURL * inputFileURL
Definition: AGSGeoprocessingDataFile.h:83
instancetype geoprocessingDataFile()
A base class for geoprocessing parameters.
Definition: AGSGeoprocessingParameter.h:38
A protocol exposed by operations that allow cancellation.
Definition: AGSCancelable.h:38