Interface ApiKeyResource

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String getApiKey()
      Gets the API key to access API key enabled services and resources in ArcGIS Online.
      void setApiKey​(String apiKey)
      Sets the API key to access API key enabled services and resources in ArcGIS Online.
    • Method Detail

      • getApiKey

        String getApiKey()
        Gets 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 ApiKeyResource overrides the default key set on ArcGISRuntimeEnvironment.getApiKey().

        Returns:
        the API key to access API key enabled services and resources in ArcGIS Online
        Since:
        100.10.0
      • setApiKey

        void setApiKey​(String apiKey)
        Sets 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 ApiKeyResource overrides the default key set on ArcGISRuntimeEnvironment.getApiKey().

        Parameters:
        apiKey - the API key to access API key enabled services and resources in ArcGIS Online
        Since:
        100.10.0