onLoad

abstract suspend fun onLoad(): DynamicEntityDataSourceInfo

Handles the loading process of a data source and returns DynamicEntityDataSourceInfo.

The DynamicEntityDataSourceInfo defines the schema and metadata used by the internal data cache of the data source. If the returned info object does not contain all required values, the data source will fail to load and will not be usable. This method is called by the ArcGIS Maps SDK when loading is required. This can be due to an explicit call to load the data source using com.arcgismaps.Loadable.load or called implicitly when a layer that contains the data source needs to be rendered.

If the load operation fails, an exception should be thrown. The exception is passed back to the data source and is available as a load error.

Return

the info containing the schema and metadata to be used by the data source

Since

200.2.0

Throws

if the load operation fails