Skip to content

Obsolete Members for ArcGISRuntime

The following members of class ArcGISRuntime are deprecated. They are provided to keep old source code working. We strongly advise against using them in new code.

Classes

(since Esri::ArcGISRuntime 100.0, deprecated) class AuthenticationChallenge
(since Esri::ArcGISRuntime 100.0, deprecated) class AuthenticationManager
(since Esri::ArcGISRuntime 100.1, deprecated) class BingMapsLayer
(since Esri::ArcGISRuntime 100.0, deprecated) class Credential
(since Esri::ArcGISRuntime 100.0, deprecated) class CredentialCache
(since Esri::ArcGISRuntime 100.0, deprecated) class OAuthClientInfo
(since Esri::ArcGISRuntime 100.1, deprecated) class PopupAttachmentListModel
(since Esri::ArcGISRuntime 100.0, deprecated) class PopupAttachmentManager
(since Esri::ArcGISRuntime 100.0, deprecated) class PopupAttributeListModel
(since Esri::ArcGISRuntime 100.0, deprecated) class PopupManager
(since Esri::ArcGISRuntime 100.1, deprecated) class RemoteResource
(since Esri::ArcGISRuntime 100.12, deprecated) class SketchEditConfiguration
(since Esri::ArcGISRuntime 100.12, deprecated) class SketchEditor
(since Esri::ArcGISRuntime 100.12, deprecated) class SketchStyle
(since Esri::ArcGISRuntime 100.12, deprecated) class SketchVertex
(since Esri::ArcGISRuntime 100.0, deprecated) class TaskWatcher

Types

(since Esri::ArcGISRuntime 100.0, deprecated) enum class AuthenticationChallengeType { Unknown, UsernamePassword, OAuth, ClientCertificate, SslHandshake }
(since Esri::ArcGISRuntime 100.0, deprecated) enum class AuthenticationType { Unknown, Token, HTTP, Certificate }
(since Esri::ArcGISRuntime 100.1, deprecated) enum class BingMapsLayerStyle { Unknown, Aerial, Hybrid, Road }
(since Esri::ArcGISRuntime 100.2, deprecated) enum class LoginType { Unknown, OAuth, ClientCertificate, UsernamePassword }
(since Esri::ArcGISRuntime 100.0, deprecated) enum class OAuthMode { Unknown, User, App }
(since Esri::ArcGISRuntime 100.12, deprecated) enum class SketchCreationMode { Unknown, Point, Polyline, Polygon, Multipoint }
(since Esri::ArcGISRuntime 100.12, deprecated) enum class SketchResizeMode { None, Stretch, Uniform }
(since Esri::ArcGISRuntime 100.12, deprecated) enum class SketchVertexEditMode { InteractionEdit, SelectOnly }

Classes

[since Esri::ArcGISRuntime 100.0, deprecated] class ArcGISRuntime::AuthenticationChallenge

This class is deprecated. We strongly advise against using it in new code.

Instances of this class represent an authentication challenge that was raised because a security error was encountered while trying to access a secured network resource. You can connect to the AuthenticationManager::authenticationChallenge signal to handle challenges raised from security errors.

To satisfy the challenge, you need to do one of the following:

This class was introduced in Esri::ArcGISRuntime 100.0.

[since Esri::ArcGISRuntime 100.0, deprecated] class ArcGISRuntime::AuthenticationManager

This class is deprecated. We strongly advise against using it in new code.

This class allows you to manage authentication/security related tasks.

It emits the authenticationChallenge signal whenever an authentication or security issue is encountered anywhere in the API.

The following challenges can be raised by the AuthenticationManager:

To handle authentication challenges in the UI automatically in QML, import the Esri.ArcGISRuntime.Toolkit module and declare the AuthenticationView component.

To see a full example of using the AuthenticationView with the AuthenticationManager, please see the token authentication sample.

It also contains an instance of a CredentialCache which maintains a cache of credentials, in memory, that have been previously used to satisfy authentication challenges. This allows a credential to be reused where appropriate, and prevents unnecessary or duplicate challenges from being issued while accessing secure resources from the same security realm. Caching happens automatically if isCredentialCacheEnabled() is true.

Note: When the user wants to sign out, the CredentialCache::removeAllCredentials() method must be called explicitly to clear the credential cache. Relevant samples:

This class was introduced in Esri::ArcGISRuntime 100.0.

[since Esri::ArcGISRuntime 100.1, deprecated] class ArcGISRuntime::BingMapsLayer

This class is deprecated. We strongly advise against using it in new code.

A Bing maps layer displays map content from a Bing Maps web service, providing access to static map tiles and imagery meta-data. Map style and culture can be customized prior to loading the layer.

Functional characteristics

Bing maps require an API key from Microsoft. There are two ways to set this key:

A Bing maps layer will fail to load if it does not have a Bing map key or a Portal from where it can get the Bing map key. In this situation, you can set the key and call Loadable::retryLoad. To use the BingMapsLayer you must adhere to Microsoft's Mobile Brand Guidelines.

Bing maps layers do not support identify, query, selection, or time.

Performance characteristics

Bing maps layers perform similarly to other tiled layers. Raster tiles are fetched from Bing's servers on demand.

This class was introduced in Esri::ArcGISRuntime 100.1.

See also Layer.

[since Esri::ArcGISRuntime 100.0, deprecated] class ArcGISRuntime::Credential

This class is deprecated. We strongly advise against using it in new code.

A credential is composed of user account information (username and password), OAuth client information (OAuthClientInfo), or a secured token.

HTTP basic and digest authentication is supported.

Client certificate authentication is also supported for certificate secured resources. Load the certificate information into QSslConfiguration and construct a credential by providing it the SSL configuration.

Relevant samples:

This class was introduced in Esri::ArcGISRuntime 100.0.

See also OAuthClientInfo.

[since Esri::ArcGISRuntime 100.0, deprecated] class ArcGISRuntime::CredentialCache

This class is deprecated. We strongly advise against using it in new code.

An instance of this class is available through the AuthenticationManager. It represents a cache containing credentials. All objects and tasks share this instance and could potentially reuse a credential if they need to access the same security realm.

The URL acts as the lookup key into the cache and represents one of the following:

  • The full path to a server from an ArcGIS Server.
  • The full path to a portal, portal item, or hosted item.
  • The URL to a portal, such as https://www.arcgis.com.
  • The URL to an ArcGIS Server instance, such as https://host(:port)/instance.

Automatic caching happens when credentials (that is, username, password, token, or OAuth client information) are required when connecting to a secure service hosted by ArcGIS Server, ArcGIS Online, or Federated by Portal. Upon successful connection to one of these secure services, the credential is cached in the CredentialCache and reused again whenever subsequent connections are made to the secure service.

Caching happens automatically if AuthenticationManager::isCredentialCacheEnabled is enabled. In addition, the CredentialCache class contains public methods to manipulate the cache contents.

This class was introduced in Esri::ArcGISRuntime 100.0.

[since Esri::ArcGISRuntime 100.0, deprecated] class ArcGISRuntime::OAuthClientInfo

This class is deprecated. We strongly advise against using it in new code.

Applications can generate tokens that can access ArcGIS Online content and services using OAuth client information configured for OAuthMode::App.

This information can also allow ArcGIS Online users to authorize your application to access ArcGIS Online content and services on their behalf by configuring with OAuthMode::User. Usage will be billed to that user and you can access that user's private content.

Your client secret should never be accessible to users or other developers. Treat it like a password.

This class was introduced in Esri::ArcGISRuntime 100.0.

[since Esri::ArcGISRuntime 100.1, deprecated] class ArcGISRuntime::PopupAttachmentListModel

This class is deprecated. We strongly advise against using it in new code.

Obtain a PopupAttachmentListModel from a PopupAttachmentManager.

The model will automatically fetch attachments from the underlying features so that they can be displayed in a view.

This class is a subclass of QAbstractListModel.

The model returns data for the following roles:

RoleTypeDescriptionPopupAttachmentRoles
nameQStringThe name of the attachment.PopupAttachmentNameRole
contentTypeQStringThe MIME type of the attachment file.PopupAttachmentContentTypeRole
sizeintThe size of the attachment in bytes.PopupAttachmentSizeRole
localboolWhether the data for the attachments has been downloaded locally.PopupAttachmentLocalRole
attachmentUrlQUrlThe URL of the attachment.PopupAttachmentAttachmentUrlRole
popupTypeEsri::ArcGISRuntime::PopupAttachmentTypeThe type of popup attachment.PopupAttachmentPopupTypeRole
editStateEsri::ArcGISRuntime::PopupAttachmentEditStateThe popup attachment edit state.PopupAttachmentEditStateRole
thumbnailUrlQUrlThe URL to the thumbnail.PopupAttachmentThumbnailUrlRole
fullImageUrlQUrlThe URL to the full image.PopupAttachmentFullImageUrlRole

This class was introduced in Esri::ArcGISRuntime 100.1.

[since Esri::ArcGISRuntime 100.0, deprecated] class ArcGISRuntime::PopupAttachmentManager

This class is deprecated. We strongly advise against using it in new code.

In addition to the available constructors on PopupAttachmentManager, you can obtain a PopupAttachmentManager from PopupManager::attachmentManager.

This class was introduced in Esri::ArcGISRuntime 100.0.

[since Esri::ArcGISRuntime 100.0, deprecated] class ArcGISRuntime::PopupAttributeListModel

This class is deprecated. We strongly advise against using it in new code.

Obtain a PopupAttributeListModel from the PopupManager.

The model returns data for the following roles:

RoleTypeDescriptionSublayerRoles
fieldNameQStringThe field name for the PopupField.PopupAttributeFieldNameRole
fieldValueQVariantThe value for the PopupField.PopupAttributeFieldValueRole
popupDateFormatPopupDateFormatThe PopupDateFormat for the PopupField.PopupAttributePopupDateFormatRole
decimalPlacesintThe number of decimal places to display for numerical fields.PopupAttributeDecimalPlacesRole
isUseThousandsSeparatorboolIf the thousands separator should be used.PopupAttributeIsUseThousandsSeparatorRole
isEditableboolWhether the PopupField is editable.PopupAttributeIsEditableRole
isVisibleboolWhether the PopupField is visible.PopupAttributeIsVisibleRole
isNullableboolWhether the PopupField is nullable.PopupAttributeIsNullableRole
labelQStringThe PopupField label.PopupAttributeLabelRole
popupStringFieldOptionPopupStringFieldOptionThe PopupStringFieldOption for the PopupField.PopupAttributePopupStringFieldOptionRole
tooltipQStringThe tooltip for the PopupField.PopupAttributeTooltipRole
formattedValueQStringThe formatted value for the PopupField.PopupAttributeFormattedValueRole
fieldTypeFieldTypeThe FieldType for the PopupField.PopupAttributeFieldTypeRole
maxLengthintThe maxmimum length for the PopupField.PopupAttributeMaxLengthRole
isFeatureTypeboolWhether the PopupField is a feature type.PopupAttributeIsFeatureTypeRole
validationErrorTextQStringThe validation error text if there is any.PopupAttributeValidationErrorTextRole
rangeDomainValidationTextQStringThe range domain validation text if applicable.PopupAttributeRangeDomainValidationTextRole
useThousandsSeparatorQStringIf the thousands separator should be used (since 100.1).PopupAttributeUseThousandsSeparatorRole
editableboolWhether the PopupField is editable (since 100.1).PopupAttributeEditableRole
attributeVisibleboolWhether the PopupField is visible (since 100.1).PopupAttributeAttributeVisibleRole
nullableboolWhether the PopupField is nullable (since 100.1).PopupAttributeNullableRole
featureTypeboolWhether the PopupField is a feature type (since 100.1).PopupAttributeFeatureTypeRole

This class was introduced in Esri::ArcGISRuntime 100.0.

[since Esri::ArcGISRuntime 100.0, deprecated] class ArcGISRuntime::PopupManager

This class is deprecated. We strongly advise against using it in new code.

This class works in conjunction with the PopupView in the ArcGIS Maps SDK Toolkit. The PopupView is used to display information about a GeoElement. For example, a PopupView could be used to display the attributes of an ArcGISFeature that is stored in a Feature Service. PopupManager provides the PopupView with the content to display in the view. It also contains many helper functions and properties to assist the PopupView with displaying and editing information related to the associated GeoElement.

An example workflow for displaying a PopupView using a PopupManager would be:

  • Declare a PopupView and anchor it to a desired location.
  • Perform an identify operation on a GeoView and select a Feature from the identify result.
  • Create a Popup from the Feature.
  • Optionally obtain the Popup's PopupDefinition and set the title, whether to show attachments, and so on.
  • Create a PopupManager from the Popup.
  • Assign the PopupView's popupManager property the PopupManager created in the previous step.
  • Call the show() method to display the PopupView.
  • Call the dismiss() method to hide the PopupView.

Note: Each time a change is made to the Popup, PopupDefinition, PopupManager, or any of their properties, the PopupManager must be re-set to the PopupView.

In order to use the PopupManager with a QML UI, the PopupManager, PopupAttachmentManager, PopupAttachmentListModel, and PopupAttributeListModel classes must be registered as QML Types. For example, the following lines could be added to the main.cpp to register the classes under the Esri.Samples namespace:

qmlRegisterUncreatableType<PopupManager>("Esri.Samples", 1, 0, "PopupManager", "PopupManager is uncreateable");
qmlRegisterUncreatableType<PopupAttachmentManager>("Esri.Samples", 1, 0, "PopupAttachmentManager", "PopupAttachmentManager is uncreateable");
qmlRegisterUncreatableType<PopupAttributeListModel>("Esri.Samples", 1, 0, "PopupAttributeListModel", "PopupAttributeListModel is uncreateable");
qmlRegisterUncreatableType<PopupAttachmentListModel>("Esri.Samples", 1, 0, "PopupAttachmentListModel", "PopupAttachmentListModel is uncreateable");

Note: The default PopupView provided with the toolkit is built with Qt Quick for a QML UI. If using Qt Widgets, a custom Widgets UI could be created to consume the information provided by PopupManager.

Relevant samples:

  • Display clusters: Display a web map with a point feature layer that has feature reduction enabled to aggregate points into clusters.
  • Show popup: Show predefined popups from a web map.

This class was introduced in Esri::ArcGISRuntime 100.0.

[since Esri::ArcGISRuntime 100.1, deprecated] class ArcGISRuntime::RemoteResource

This class is deprecated. We strongly advise against using it in new code.

This interface adopted by classes whose objects need to access remote network resources, potentially in a secured manner. For example, a web service or a file on a web server that could require credentials to access.

This class was introduced in Esri::ArcGISRuntime 100.1.

[since Esri::ArcGISRuntime 100.12, deprecated] class ArcGISRuntime::SketchEditConfiguration

This class is deprecated. We strongly advise against using it in new code.

since Esri::ArcGISRuntime 200.2

SketchEditor and associated types are deprecated. Use GeometryEditor instead.

This class was introduced in Esri::ArcGISRuntime 100.12.

[since Esri::ArcGISRuntime 100.12, deprecated] class ArcGISRuntime::SketchEditor

This class is deprecated. We strongly advise against using it in new code.

Instances of this class represent a sketch editor that allows the user to interactively sketch geometries. You can sketch point, polygon, and polyline geometries from scratch, modify existing geometries, insert and remove vertices, undo and redo changes, and so on.

The sketch editor must be set on the view using MapView::setSketchEditor and then started to perform the sketch based on user interactions.

A new GeometryEditor class provides a successor to this class, supporting a wider array of use cases and providing a foundation for additional future geometry editing capabilities. If starting new development, use GeometryEditor in preference to SketchEditor.

since Esri::ArcGISRuntime 200.2

Use GeometryEditor instead.

Relevant samples:

  • Sketch on map: This sample demonstrates how to use the Sketch Editor to edit or sketch a new point, line, or polygon geometry on to a map.

This class was introduced in Esri::ArcGISRuntime 100.12.

[since Esri::ArcGISRuntime 100.12, deprecated] class ArcGISRuntime::SketchStyle

This class is deprecated. We strongly advise against using it in new code.

since Esri::ArcGISRuntime 200.2

SketchEditor and associated types are deprecated. Use GeometryEditor instead.

This class was introduced in Esri::ArcGISRuntime 100.12.

[since Esri::ArcGISRuntime 100.12, deprecated] class ArcGISRuntime::SketchVertex

This class is deprecated. We strongly advise against using it in new code.

If the pointIndex is greater or equal to 0, then it is a vertex. If the insertionIndex is greater or equal to 0, then it is a mid-vertex. This object cannot have both pointIndex and insertionIndex greater or equal to 0. When the associated sketch editor is modifying a point geometry, the partIndex and pointIndex will both be 0 for a valid vertex. Mid-vertices are not allowed for a single point geometry. When the associated sketch editor is modifying a multi-point geometry, the partIndex will be 0 for a valid vertex. Mid-vertices are not allowed for a multi-point geometry.

since Esri::ArcGISRuntime 200.2

SketchEditor and associated types are deprecated. Use GeometryEditor instead.

This class was introduced in Esri::ArcGISRuntime 100.12.

[since Esri::ArcGISRuntime 100.0, deprecated] class ArcGISRuntime::TaskWatcher

This class is deprecated. We strongly advise against using it in new code.

TaskWatcher supports examining the state of a task along with the ability to cancel a task.

This class is only copyable for convenience. All copies are shallow copies and reference the same underlying task.

since Esri::ArcGISRuntime 200.2

This class was introduced in Esri::ArcGISRuntime 100.0.

Type Documentation

[since Esri::ArcGISRuntime 100.0, deprecated] enum class AuthenticationChallengeType

This enum is deprecated. We strongly advise against using it in new code.

Enumerates types of authentication challenges.

ConstantValueDescription
AuthenticationChallengeType::Unknown0Deprecated. No authentication challenge type defined.
AuthenticationChallengeType::UsernamePassword1Deprecated. Authentication challenge type requiring username and/or password.
AuthenticationChallengeType::OAuth2Deprecated. Authentication challenge type requiring an OAuth authorization code.
AuthenticationChallengeType::ClientCertificate3Deprecated. Authentication challenge type requiring a client certificate.
AuthenticationChallengeType::SslHandshake4Deprecated. Authentication challenge type indicating one or more SSL errors have occurred.

This enum was introduced in Esri::ArcGISRuntime 100.0.

[since Esri::ArcGISRuntime 100.0, deprecated] enum class AuthenticationType

This enum is deprecated. We strongly advise against using it in new code.

Enumerates supported authentication types for secured services.

ConstantValueDescription
AuthenticationType::Unknown0Deprecated. No authentication type defined.
AuthenticationType::Token1Deprecated. Token-based authentication.
AuthenticationType::HTTP2Deprecated. HTTP Basic or Digest authentication.
AuthenticationType::Certificate3Deprecated. The client certificate-based security. Requires setting a SSL configuration.

This enum was introduced in Esri::ArcGISRuntime 100.0.

[since Esri::ArcGISRuntime 100.1, deprecated] enum class BingMapsLayerStyle

This enum is deprecated. We strongly advise against using it in new code.

Enumerates the types of layer styles for a Bing Maps layer.

The BingMapsLayerStyle can be one of:

ConstantValueDescription
BingMapsLayerStyle::Unknown-1Deprecated. Unknown Bing Maps layer style.
BingMapsLayerStyle::Aerial0Deprecated. Aeriel layer style.
BingMapsLayerStyle::Hybrid1Deprecated. Hybrid layer style (aerial with labels).
BingMapsLayerStyle::Road2Deprecated. Road layer style.

This enum was introduced in Esri::ArcGISRuntime 100.1.

[since Esri::ArcGISRuntime 100.2, deprecated] enum class LoginType

This enum is deprecated. We strongly advise against using it in new code.

Supported login types for portal.

ConstantValueDescription
LoginType::Unknown-1Deprecated. Login type is unknown.
LoginType::OAuth0Deprecated. Login uses an OAuth credentials based workflow.
LoginType::ClientCertificate1Deprecated. Login uses a digital certificate to identify the user.
LoginType::UsernamePassword2Deprecated. Login uses a username and password to identify the user.

This enum was introduced in Esri::ArcGISRuntime 100.2.

[since Esri::ArcGISRuntime 100.0, deprecated] enum class OAuthMode

This enum is deprecated. We strongly advise against using it in new code.

Enumerates the supported modes for logging in using OAuth.

ConstantValueDescription
OAuthMode::Unknown0Deprecated. No mode specified.
OAuthMode::User1Deprecated. OAuth User authentication mode. Requires client ID.
OAuthMode::App2Deprecated. OAuth App authentication mode. Requires client ID and client secret.

This enum was introduced in Esri::ArcGISRuntime 100.0.

[since Esri::ArcGISRuntime 100.12, deprecated] enum class SketchCreationMode

This enum is deprecated. We strongly advise against using it in new code.

Enumerates the type of geometry and how it will be created by the SketchEditor.

ConstantValueDescription
SketchCreationMode::Unknown-1Deprecated. Unknown geometry type.
SketchCreationMode::Point0Deprecated. Sketches a Point geometry.
SketchCreationMode::Polyline1Deprecated. Sketches a Polyline geometry.
SketchCreationMode::Polygon2Deprecated. Sketches a Polygon geometry.
SketchCreationMode::Multipoint10Deprecated. Sketches a Multipoint geometry.

This enum was introduced in Esri::ArcGISRuntime 100.12.

[since Esri::ArcGISRuntime 100.12, deprecated] enum class SketchResizeMode

This enum is deprecated. We strongly advise against using it in new code.

Describes how geometry is resized to fill its allocated space while editing geometry.

The SketchResizeMode can be one of:

ConstantValueDescription
SketchResizeMode::None0Deprecated. No resizing.
SketchResizeMode::Stretch1Deprecated. The geometry is stretched to fill the destination dimensions.
SketchResizeMode::Uniform2Deprecated. The geometry is resized to fill the destination dimensions while it preserves its native aspect ratio.

This enum was introduced in Esri::ArcGISRuntime 100.12.

[since Esri::ArcGISRuntime 100.12, deprecated] enum class SketchVertexEditMode

This enum is deprecated. We strongly advise against using it in new code.

Describes how vertices respond to user interaction.

The SketchVertexEditMode can be one of:

ConstantValueDescription
SketchVertexEditMode::InteractionEdit0Deprecated. Vertices can be edited through user interaction.
SketchVertexEditMode::SelectOnly1Deprecated. Only selection state of vertex can be updated through user interaction.

This enum was introduced in Esri::ArcGISRuntime 100.12.

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