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 MutableListImpl 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

See also

FeatureServiceSessionType