ArcGIS Runtime SDK for iOS: <AGSAPIKeyResource> Protocol Reference
ArcGIS Runtime SDK for iOS  100.11
<AGSAPIKeyResource> Protocol Reference


An interface for getting and setting the API key of an object.

This interface will be used for getting and setting the API key generated from ArcGIS Developers dashboard on objects where required.

Inheritance diagram for <AGSAPIKeyResource>:
AGSArcGISSceneLayer AGSArcGISTiledLayer AGSArcGISVectorTiledLayer AGSBasemap AGSClosestFacilityTask AGSExportTileCacheTask AGSExportVectorTilesTask AGSGeodatabaseSyncTask AGSLocatorTask AGSRouteTask AGSServiceAreaTask AGSServiceFeatureTable


NSString * APIKey

Property Documentation

◆ APIKey

- (NSString*) APIKey

The 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. Setting the API key on a specific AGSAPIKeyResource overrides the default key set on AGSArcGISRuntimeEnvironment::APIKey.