ArcGIS Runtime SDK for iOS: AGSGenerateLayerOption.h Source File
ArcGIS Runtime SDK for iOS  100.11
AGSGenerateLayerOption.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  //Required for Globals API doc
26 
27 #import <Foundation/Foundation.h>
28 #import <ArcGIS/AGSObject.h>
29 
30 
31 
35 typedef NS_ENUM(NSInteger, AGSGenerateLayerQueryOption) {
40 };
41 
49 @interface AGSGenerateLayerOption : AGSObject <NSCopying>
50 
51 #pragma mark -
52 #pragma mark initializers
53 
58 -(instancetype)initWithLayerID:(NSInteger)layerID;
59 
66 -(instancetype)initWithLayerID:(NSInteger)layerID includeRelated:(BOOL)includeRelated;
67 
73 -(instancetype)initWithLayerID:(NSInteger)layerID whereClause:(NSString *)whereClause;
74 
79 +(instancetype)generateLayerOption;
80 
86 +(instancetype)generateLayerOptionWithLayerID:(NSInteger)layerID;
87 
94 +(instancetype)generateLayerOptionWithLayerID:(NSInteger)layerID includeRelated:(BOOL)includeRelated;
95 
102 +(instancetype)generateLayerOptionWithLayerID:(NSInteger)layerID whereClause:(NSString *)whereClause;
103 
104 #pragma mark -
105 #pragma mark properties
106 
111 @property (nonatomic, assign, readwrite) BOOL includeRelated;
112 
116 @property (nonatomic, assign, readwrite) NSInteger layerID;
117 
121 @property (nonatomic, assign, readwrite) AGSGenerateLayerQueryOption queryOption;
122 
129 @property (nonatomic, assign, readwrite) BOOL useGeometry;
130 
137 @property (nonatomic, copy, readwrite) NSString *whereClause;
138 
139 #pragma mark -
140 #pragma mark methods
141 
142 @end
143 
144 
AGSGenerateLayerQueryOption
Definition: AGSGenerateLayerOption.h:35
@ AGSGenerateLayerQueryOptionNone
Definition: AGSGenerateLayerOption.h:38
@ AGSGenerateLayerQueryOptionAll
Definition: AGSGenerateLayerOption.h:37
@ AGSGenerateLayerQueryOptionUseFilter
Definition: AGSGenerateLayerOption.h:39
@ AGSGenerateLayerQueryOptionUnknown
Definition: AGSGenerateLayerOption.h:36
Options defining what data to include for a layer in a geodatabase.
Definition: AGSGenerateLayerOption.h:49
instancetype generateLayerOption()
BOOL includeRelated
Definition: AGSGenerateLayerOption.h:111
AGSGenerateLayerQueryOption queryOption
Definition: AGSGenerateLayerOption.h:121
NSInteger layerID
Definition: AGSGenerateLayerOption.h:116
NSString * whereClause
Definition: AGSGenerateLayerOption.h:137
BOOL useGeometry
Definition: AGSGenerateLayerOption.h:129
Definition: AGSObject.h:28