ApiKeyResource QML Type

  • Esri.ArcGISRuntime
  • ApiKeyResource
  • Base type for types that support getting and setting the API key of an object. More...

    Import Statement: import Esri.ArcGISRuntime
    Since: Esri.ArcGISRuntime 100.10

    Properties

    Detailed Description

    This interface gets and sets the API key generated from the ArcGIS Developers website. website on objects where required.

    Types that implement ApiKeyResource

    ArcGISSceneLayer

    A layer that displays 3D features from a scene service

    ArcGISTiledLayer

    Displays data from a ArcGIS Map service, by using pre-generated tiles

    ArcGISVectorTiledLayer

    Displays data from an ArcGIS vector tiled data source

    Basemap

    A basemap is a non-editable layer that provides background, or reference information, in your map or scene

    ClosestFacilityTask

    A task to find a closest facility route between facilities and incidents

    ExportTileCacheTask

    A task used to export a tile cache (.tpk or .tpkx)

    ExportVectorTilesTask

    A task used to export vector tiles and their style resources

    GeodatabaseSyncTask

    A task to download and sync a sync-enabled mobile geodatabase

    LocatorTask

    A task for Geocoding and Reverse Geocoding that supports both online and offline capabilities

    RouteTask

    A task to find a Route between two or more locations

    ServiceAreaTask

    A task to compute areas that can be serviced (reached) from a given location

    ServiceFeatureTable

    A feature table created from the URL to an ArcGIS feature service

    Property Documentation

    apiKey : string

    Returns 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.

    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:


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