ArcGISRuntimeEnvironment

Namespace: Esri::GameEngine
Class: Esri/GameEngine/ArcGISRuntimeEnvironment
Since: 1.0.0

Summary

Provides environment settings, such as an API key for access to ArcGIS location services.

Properties

PropertyTypeNullableReadonlySummary
No
No

The default API key to access API key enabled services and resources in ArcGIS Online.

APIKey

static FString GetAPIKey()

static void SetAPIKey(const FString& APIKey)

The default API key to access API key enabled services and resources in ArcGIS Online.

An API key is a unique key used to authorize access to specific services and resources in ArcGIS Online. It is also used to monitor access to those services. An API key is created and managed in the ArcGIS developer dashboard and is tied to a specific ArcGIS account.

In addition to setting an ArcGISRuntimeEnvironment::APIKey at a global level for your application, you can set it on any class that implements APIKeyResource. This overrides the ArcGISRuntimeEnvironment::APIKey and enables more granular usage telemetry and management of ArcGIS location resources used by your app.

Classes that expose an API key property by implementing APIKeyResource include:

  • Basemap
  • ArcGISSceneLayer
  • ArcGISTiledLayer
  • ArcGISVectorTiledLayer
  • ServiceFeatureTable
  • ExportVectorTilesTask
  • LocatorTask
  • GeodatabaseSyncTask
  • ClosestFacilityTask
  • RouteTask
  • ServiceAreaTask
  • ExportTileCacheTask

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.