ArcGIS for Developers

App QML Type

This is the main component of an Application. More...

Import Statement: import ArcGIS.AppFramework 1.0

Properties

Signals

Methods

Detailed Description

It defines all the attributes that are common across visual items, such as x and y position, width and height, anchoring and key handling support. App component can be useful for grouping several items under a single root visual item. Following code snippet explains the usage of the App component.

App {
    id: app;
    width: 400;
    height: 640;

    Text {
        id: appText;

        anchors {
            left: parent.left;
            right: parent.right;
            top: parent.top;
            topMargin: 100;
        }

        text: "My App"
        font.pointSize: 24
        color: "black"

        horizontalAlignment: Text.AlignHCenter;
    }

    Button {
        anchors.bottom: parent.bottom
        anchors.bottomMargin: 100
        anchors.horizontalCenter: parent.horizontalCenter

        text: "Close"
        onClicked: {
            Qt.quit()
        }
    }
}

Enumerations

BackButtonAction enumeration

This is currently under review. Please ignore.

NameValue
App.BackButtonQuit0
App.BackButtonSignal1
App.BackButtonIgnore2

Property Documentation

[read-only] arguments : QStringList

This property is currently under review. Please ignore.


backButtonAction : BackButtonAction

This property is currently under review. Please ignore.


[read-only] dependencies : List<AppDependency>

Provides Dependency information


[read-only] folder : FileFolder

Provides access to a folder and its contents.


[read-only] info : AppInfo

Provides details of the Application.


[read-only] releaseType : string


[read-only] settings : Settings

Parameters can be set using this property


Signal Documentation

backButtonClicked()

This is currently under review. Please ignore.


colorChanged()

This is currently under review. Please ignore.


errorChanged( string error)


lowMemory()

Signal emitted when the system is low on available RAM. This signal is only supported on Android and iOS.


openUrl( url url)

This signal is emitted when url is opened. For example,

onOpenUrl: {
    console.log("onOpenUrl:", url);

    var urlInfo = AppFramework.urlInfo(url);

    if (!urlInfo.host.length) {
        console.log("onOpenUrl parameters:", JSON.stringify(urlInfo.queryParameters, undefined, 2));
    }
}

This URL can either be a traditional HTTP or HTTPS URL (for example http://sampleserver6.arcgisonline.com/arcgis/rest/services/Wildfire/FeatureServer/0?f=pjson), or a custom URL scheme (for example example-url://).


Method Documentation

AppDependency dependency(propertyName, string value)

This method is currently under review. Please ignore.

The propertyName parameter

The value parameter


AppDependency dependency(value)

This method is currently under review. Please ignore.

The value parameter