ArcGIS Runtime SDK for iOS: AGSFeatureEnumerator Class Reference
ArcGIS Runtime SDK for iOS  100.14
AGSFeatureEnumerator Class Reference

Description

An enumerator to iterate over features.

Instances of this class represent an enumerator to iterate over features

Since
100
Inheritance diagram for AGSFeatureEnumerator:

Instance Methods

(BOOL) - hasNextObject
 
(nullable AGSFeature *) - nextObject
 
(void) - reset
 

Properties

NSArray< AGSFeature * > * allObjects
 

Method Documentation

◆ hasNextObject

- (BOOL) hasNextObject

returns YES if there is another feature available

Since
100

◆ nextObject

- (nullable AGSFeature*) nextObject

Returns the next feature

Since
100

◆ reset

- (void) reset

puts the cursor back to the beginning

Since
100

Property Documentation

◆ allObjects

- (NSArray<AGSFeature*>*) allObjects
readnonatomiccopy

Provides all the features that can be enumerated as an array of AGSFeature objects.

Since
100
Note
Accessing this property causes all the features to be loaded into memory. To conserve memory, consider iterating over the features one-by-one using a for-in loop, or using nextObject.