populateFromService

suspend fun populateFromService(parameters: QueryParameters, clearCache: Boolean, outFields: Iterable<String>): Result<FeatureQueryResult>

Queries the feature service and places the resulting features in the local table, which is cached for the duration of the session. The ServiceFeatureTable must have its ServiceFeatureTable.featureRequestMode set to FeatureRequestMode.ManualCache. This method is useful for non-geographic data. It's also helpful when you want to avoid accessing the service for a feature whose geometry is in the current extent of the map or scene.

Specifying null or an empty MutableList for outfields results in the minimum set of fields being used to populate the local table. This is the same set of fields described for FeatureRequestMode.OnInteractionCache or FeatureRequestMode.OnInteractionNoCache.

Return

A Result that returns a FeatureQueryResult type.

Since

200.1.0

Parameters

parameters

Options for controlling the operation.

clearCache

True, if you want to clear the local cache before populating the local table. False, if you want to append the features to the local table.

outFields

A MutableList containing String. Each string is the name of a field to be used when populating the cache. If the array contains the single element "*", then all fields will be used. If the ObjectID field string name is not provided as part of the MutableList, no features will be returned for this method.

See also

FeatureServiceSessionType