ArcGIS Runtime SDK for macOS: AGSGenerateLayerOption Class Reference
ArcGIS Runtime SDK for macOS  100.5
AGSGenerateLayerOption Class Reference

Description

Instances of this class represent options that define what data is included in a sync-enabled geodatabase for a particular layer or table.

Since
100
See also
AGSGenerateGeodatabaseParameters::layerOptions
Inheritance diagram for AGSGenerateLayerOption:
AGSObject

Instance Methods

(instancetype) - initWithLayerID:
 
(instancetype) - initWithLayerID:includeRelated:
 
(instancetype) - initWithLayerID:whereClause:
 

Class Methods

(instancetype) + generateLayerOption
 
(instancetype) + generateLayerOptionWithLayerID:
 
(instancetype) + generateLayerOptionWithLayerID:includeRelated:
 
(instancetype) + generateLayerOptionWithLayerID:whereClause:
 

Properties

BOOL includeRelated
 
NSInteger layerID
 
AGSGenerateLayerQueryOption queryOption
 
BOOL useGeometry
 
NSString * whereClause
 

Method Documentation

§ generateLayerOptionWithLayerID:()

+ (instancetype) generateLayerOptionWithLayerID: (NSInteger)  layerID

Initialize the layer option with provided parameters

Parameters
layerIDThe ID of the layer for which these options are defined. Same as AGSArcGISFeatureLayerInfo::serverLayerID
Returns
A new layer option object
Since
100

§ generateLayerOptionWithLayerID:includeRelated:()

+ (instancetype) generateLayerOptionWithLayerID: (NSInteger)  layerID
includeRelated: (BOOL)  includeRelated 

Initialize the layer option with provided parameters

Parameters
layerIDThe ID of the layer for which these options are defined. Same as AGSArcGISFeatureLayerInfo::serverLayerID
includeRelatedSpecifies whether to include any data from this layer that is related to data in other layers in the geodatabase. This parameters is only valid if the layer participates in any relationships, and if those related layers are also included in the geodatabase.
Returns
A new layer option object
Since
100

§ generateLayerOptionWithLayerID:whereClause:()

+ (instancetype) generateLayerOptionWithLayerID: (NSInteger)  layerID
whereClause: (NSString *)  whereClause 

Initialize the layer option with provided parameters

Parameters
layerIDThe ID of the layer for which these options are defined. Same as AGSArcGISFeatureLayerInfo::serverLayerID.
whereClauseAn attribute query to specify which features should be included in the geodatabase.
Returns
A new layer option object
Since
100

§ initWithLayerID:()

- (instancetype) initWithLayerID: (NSInteger)  layerID

Initialize the layer option with provided parameters

Parameters
layerIDThe ID of the layer for which these options are defined. Same as AGSArcGISFeatureLayerInfo::serverLayerID
Returns
A new layer option object
Since
100

§ initWithLayerID:includeRelated:()

- (instancetype) initWithLayerID: (NSInteger)  layerID
includeRelated: (BOOL)  includeRelated 

Initialize the layer option with provided parameters

Parameters
layerIDThe ID of the layer for which these options are defined. Same as AGSArcGISFeatureLayerInfo::serverLayerID
includeRelatedSpecifies whether to include any data from this layer that is related to data in other layers in the geodatabase. This parameters is only valid if the layer participates in any relationships, and if those related layers are also included in the geodatabase.
Returns
A new layer option object
Since
100

§ initWithLayerID:whereClause:()

- (instancetype) initWithLayerID: (NSInteger)  layerID
whereClause: (NSString *)  whereClause 

Initialize the layer option with provided parameters

Parameters
layerIDThe ID of the layer for which these options are defined. Same as AGSArcGISFeatureLayerInfo::serverLayerID.
whereClauseAn attribute query to specify which features should be included in the geodatabase.
Returns
A new layer option object
Since
100

Property Documentation

§ includeRelated

- (BOOL) includeRelated
readwritenonatomicassign

Specifies whether to include any data from this layer that is related to data in other layers in the geodatabase. This parameters is only valid if the layer participates in any relationships, and if those related layers are also included in the geodatabase.

Note
Only applicable if queryOption is set to AGSGenerateLayerQueryOptionNone
Since
100

§ layerID

- (NSInteger) layerID
readwritenonatomicassign

The ID of the layer for which these options are defined. Same as AGSArcGISFeatureLayerInfo::serverLayerID

Since
100

§ queryOption

- (AGSGenerateLayerQueryOption) queryOption
readwritenonatomicassign

Specifies how features should be included in the sync-enabled geodatabase.

Since
100

§ useGeometry

- (BOOL) useGeometry
readwritenonatomicassign

Determines whether to filter features based on geometry to include in the geodatabase. Only features that intersect AGSGenerateGeodatabaseParameters::extent are considered for inclusion. Default value is true

Note
Only applicable if queryOption is set to AGSGenerateLayerQueryOptionUseFilter
See also
whereClause for additional filtering option
Since
100

§ whereClause

- (NSString*) whereClause
readwritenonatomiccopy

An attribute query to filter which features should be included in the geodatabase. Can be nil, in which case, features are not filtered based on the where clause.

Note
Only applicable if queryOption is set to AGSGenerateLayerQueryOptionUseFilter
See also
useGeometry for additional filtering option
Since
100