ArcGIS Runtime SDK for iOS: AGSOperation.h Source File
ArcGIS Runtime SDK for iOS  100.9
AGSOperation.h
Go to the documentation of this file.
1 /*
2  COPYRIGHT 1995-2020 ESRI
3 
4  TRADE SECRETS: ESRI PROPRIETARY AND CONFIDENTIAL
5  Unpublished material - all rights reserved under the
6  Copyright Laws of the United States and applicable international
7  laws, treaties, and conventions.
8 
9  For additional information, contact:
10  Environmental Systems Research Institute, Inc.
11  Attn: Contracts and Legal Services Department
12  380 New York Street
13  Redlands, California, 92373
14  USA
15 
16  email: contracts@esri.com
17  */
18 
19 #import <Foundation/Foundation.h>
20 
24 typedef NS_ENUM(NSInteger, AGSOperationState) {
28 };
29 
30 
31 
36 @protocol AGSOperation
37 
38 #pragma mark properties
39 
43 @property (nonatomic, assign, readonly) AGSOperationState state;
44 
49 @property (nullable, nonatomic, copy) void (^internalCompletion)(void);
50 
60 @property (nonatomic, assign, readonly) BOOL startAsynchronously;
61 
69 @property (nonatomic, assign, readonly, getter=isCanceled) BOOL canceled;
70 
71 #pragma mark methods
72 
76 -(void)cancel;
77 
81 -(void)execute;
82 
83 @end
84 
85 
90 @interface AGSOperationBase : NSObject <AGSOperation>
91 @end
92 
94 
102 @property (nonatomic, assign, readwrite) BOOL startAsynchronously;
103 
109 -(void)doExecute;
110 
120 -(void)doCancel;
121 
125 -(void)doneExecuting;
126 
133 -(void)didComplete:(BOOL)everStarted;
134 
135 @end
136 
137 
138 
139 
140 
141 
142 
143 
Definition: AGSOperation.h:36
BOOL canceled
Definition: AGSOperation.h:69
Definition: AGSOperation.h:93
AGSOperationState
Definition: AGSOperation.h:24
Definition: AGSOperation.h:25
Definition: AGSOperation.h:26
BOOL startAsynchronously
Definition: AGSOperation.h:60
Definition: AGSOperation.h:27
void(^ internalCompletion)(void)
Definition: AGSOperation.h:90
AGSOperationState state
Definition: AGSOperation.h:43
BOOL startAsynchronously
Definition: AGSOperation.h:102