OfflineMapSyncLayerResult Class

  • OfflineMapSyncLayerResult
  • class Esri::ArcGISRuntime::OfflineMapSyncLayerResult

    The result of an OfflineMapSyncJob for a single feature layer or table. More...

    Header: #include <OfflineMapSyncLayerResult.h>
    Since: Esri::ArcGISRuntime 100.1
    Inherits: Esri::ArcGISRuntime::Object

    Public Functions

    virtual ~OfflineMapSyncLayerResult() override
    QList<Esri::ArcGISRuntime::FeatureEditResult *> editErrors(QObject *parent = nullptr) const
    Esri::ArcGISRuntime::Error error() const
    bool hasErrors() const

    Detailed Description

    When the job completes, hasErrors indicates whether any errors were incurred during the synchronization of an individual layer or table. You can examine the error to investigate general synchronization problems. In addition, explore the editErrors collection to determine whether a server-side error ocurred with an individual feature edit during synchronization.

    Member Function Documentation

    [override virtual] OfflineMapSyncLayerResult::~OfflineMapSyncLayerResult()

    Destructor.

    QList<Esri::ArcGISRuntime::FeatureEditResult *> OfflineMapSyncLayerResult::editErrors(QObject *parent = nullptr) const

    Returns the edit errors for a layer.

    • parent - A parent object that will manage the lifetime of the objects returned from this method.

    The layer results returned contain information about row edit errors that occur on the server during the synchronization of a feature layer or table. Server-side errors of this kind are infrequent, so this array is typically empty.

    Esri::ArcGISRuntime::Error OfflineMapSyncLayerResult::error() const

    Returns an error if the layer or table could not be synchronized, otherwise returns empty.

    bool OfflineMapSyncLayerResult::hasErrors() const

    Returns true if an error has been encountered synchronizing this layer or table, false otherwise.

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