Arc GISEnvironment
Provides access to and manipulation of environment settings, such as configurations for the operating environment and licenses for deployment.
Since
200.1.0
Properties
The API key allows your app to access ArcGIS location services and private portal items. An API key is a long-lived access token that authorizes your application to access secure services, content, and functionality in ArcGIS. API keys are generated using API key credentials, a type of item you create and manage in your portal. API key credentials contain settings that allow you to generate API keys and manage properties such as their privileges and expiration date. To learn how to create and manage API keys, go to the Create an API Key tutorial. You must ensure that your API key has the correct privileges to access secure resources.
Indicates the current version of the ArcGIS Maps SDK for Kotlin.
The Context to be set by the user for use in creating View types and accessing resources. When setting this property the underlying Context.applicationContext will be used. Setting this property will also cause the application's package name to be appended to any com.arcgismaps.httpcore.authentication.TokenCredential.referer.
A SharedFlow to be invoked whenever a console message is sent from any Arcade script. This flow allows clients to collect messages from evaluating an Arcade script expression in an attribute rule, labeling, popup, dictionary renderer, geotrigger, and more.
The ArcGISHttpClient used to make network requests. An ArcGISHttpClient is set by default, setting a new ArcGISHttpClient is only required if the ArcGISHttpClient needs to be customized, for example in order to intercept network requests, see ArcGISEnvironment.configureArcGISHttpClient.
Responsible for issuing authentication challenges and managing credential stores of secured resources.
Determines if curve geometries are fetched from and sent to services that support them. By default, this API fetches curves in geometries and act as a true curve client, which means:
Functions
Configures the ArcGISEnvironment with a new ArcGISHttpClient. Configuring a new ArcGISHttpClient should be done on application initialization, before any network requests may be invoked by the API or user code.
License an application for deployment using license info for named-user access. A license info instance can be obtained from a portal for the current logged in user. The license info instance is only valid for 30 days so the user will be required to log into the portal again when this expires.
License an application for deployment using an ESRI license string and one or more extension license strings.