Sample code

Not all apps start from a featured template.

You can also create your own app in ArcGIS AppStudio. Choose a starter, layout, or sample app to have the freedom to build your app to your exact requirements. You will need to write your app using QML, a user interface markup language. This is well documented with samples and help documentation available online on the Qt Company's website.

Esri has also provided downloadable samples that you can use to do the following:

  • Run on each desktop platform
  • Create an app of your own

To view and download these samples, create an app from one:

  1. Open AppStudio on the desktop.
  2. Sign in with your global account credentials.
  3. Choose New App in the toolbar.
  4. Click on the Samples tab.
  5. Select the sample you want to use, then click Create.

You can also test these samples on all supported devices, as well as real-world examples of the AppStudio featured template apps in AppStudio Player. For more information, see Use your app in AppStudio Player.

Sample apps are also available in a public GitHub repository. The main advantage of using GitHub is visible code maintenance, allowing you to see and track specific changes, while the samples provided in AppStudio are only the most current version. To download and use the samples from GitHub, complete the following steps:

  1. Download the GitHub .zip file.
  2. Browse to the folder for the sample you want to use, extract it from the .zip file, and copy it to your AppStudio installation Apps folder. On Windows, for example, the default location is C:\Users\<username>\ArcGIS\AppStudio\Apps.
  3. The app is now present in AppStudio and can be opened or run in the same way as any other app.

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