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.
the api key String