ArcGIS Runtime SDK for iOS: AGSObservableOperation.h Source File
ArcGIS Runtime SDK for iOS  100.9
AGSObservableOperation.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 <ArcGIS/AGSOperation.h>
20  //Required for Globals API doc
22 
27 
28 
33 @property (nullable, nonatomic, strong, readonly ) id result;
34 
38 @property (nullable, nonatomic, strong, readonly) NSError *error;
39 
47 -(void)registerListener:(id)listener forCompletion:(void(^)(id __nullable result, NSError * __nullable error))completion;
48 
56 -(void)unregisterListener:(id)listener;
57 
61 -(BOOL)isRegisteredListener:(id)listener;
62 
63 
64 @end
65 
Base class for operations. This adds the ability to register a listener to the AGSOperationBase. It also adds the concept of an error and a result.
Definition: AGSObservableOperation.h:26
Definition: AGSOperation.h:90
NSError * error
Definition: AGSObservableOperation.h:38
id result
Definition: AGSObservableOperation.h:33