ApiKey

value class ApiKey

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 API key at a global level for your application using the ArcGISEnvironment.apiKey property, you can set an ApiKeyResource.apiKey property on any class in this API that implements ApiKeyResource. When you set an individual ApiKeyResource.apiKey property on an ApiKeyResource it will override the default key at the global level (on the ArcGISEnvironment.apiKey property, in other words), enabling more granular usage telemetry and management for ArcGIS Online resources used by your app.

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

Use the factory method ApiKey.create to create an instance of this class.

Since

200.0.0

Parameters

value

the api key String

See also

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun toString(): String