suspend fun connect(): Result<Unit>

Connects to a service that provides dynamic entity observations. Data does not start streaming from the dynamic entity data source until it's loaded and connected. Once the connection is successfully established, data begins to flow from the stream.

Use this method to explicitly connect to the data source. This call loads the data source if it is not already loaded and then initiates a persistent connection to the service that provides the observation stream. When this method completes, the DynamicEntityDataSource.connectionStatus is set to connected or failed.

Note that a data source connection is initiated implicitly if the data source is contained by a DynamicEntityLayer and added to a map or scene.


A Result that has no return value.