ArcGIS Runtime SDK for iOS: AGSOperation.h Source File
ArcGIS Runtime SDK for iOS  100.11
AGSOperation.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 
30 typedef NS_ENUM(NSInteger, AGSOperationState) {
34 };
35 
36 
37 
42 @protocol AGSOperation
43 
44 #pragma mark properties
45 
49 @property (nonatomic, assign, readonly) AGSOperationState state;
50 
55 @property (nullable, nonatomic, copy) void (^internalCompletion)(void);
56 
66 @property (nonatomic, assign, readonly) BOOL startAsynchronously;
67 
75 @property (nonatomic, assign, readonly, getter=isCanceled) BOOL canceled;
76 
77 #pragma mark methods
78 
82 -(void)cancel;
83 
87 -(void)execute;
88 
89 @end
90 
91 
96 @interface AGSOperationBase : NSObject <AGSOperation>
97 @end
98 
100 
108 @property (nonatomic, assign, readwrite) BOOL startAsynchronously;
109 
115 -(void)doExecute;
116 
126 -(void)doCancel;
127 
131 -(void)doneExecuting;
132 
139 -(void)didComplete:(BOOL)everStarted;
140 
141 @end
142 
143 
144 
145 
146 
147 
148 
149 
AGSOperationState
Definition: AGSOperation.h:30
@ AGSOperationStateExecuting
Definition: AGSOperation.h:32
@ AGSOperationStateReady
Definition: AGSOperation.h:31
@ AGSOperationStateCompleted
Definition: AGSOperation.h:33
Definition: AGSOperation.h:99
BOOL startAsynchronously
Definition: AGSOperation.h:108
Definition: AGSOperation.h:96
Definition: AGSOperation.h:42
BOOL startAsynchronously
Definition: AGSOperation.h:66
AGSOperationState state
Definition: AGSOperation.h:49
BOOL canceled
Definition: AGSOperation.h:75
void(^ internalCompletion)(void)