Skip To Content ArcGIS for Developers Sign In Dashboard

SyncLayerOption Class

(Esri::ArcGISRuntime::SyncLayerOption)

Options defining how to sync edits for a specific layer or table when creating a sync-enabled mobile geodatabase. More...

Header: #include <SyncLayerOption>
Since: Esri::ArcGISRuntime 100.0

Public Functions

SyncLayerOption()
SyncLayerOption(qint64 layerId)
SyncLayerOption(qint64 layerId, SyncDirection syncDirection)
SyncLayerOption(const SyncLayerOption &other)
SyncLayerOption(SyncLayerOption &&other)
~SyncLayerOption()
bool isEmpty() const
qint64 layerId() const
void setLayerId(qint64 layerOrTableId)
void setSyncDirection(SyncDirection syncDirection)
SyncDirection syncDirection() const
SyncLayerOption &operator=(const SyncLayerOption &other)
SyncLayerOption &operator=(SyncLayerOption &&other)

Detailed Description

Options defining how to sync edits for a specific layer or table when creating a sync-enabled mobile geodatabase.

A SyncLayerOption represents sync parameters for an individual layer in a sync-enabled geodatabase that uses the SyncModel::Layer sync model.

See SyncGeodatabaseParameters

Member Function Documentation

SyncLayerOption::SyncLayerOption()

Default constructor.

SyncLayerOption::SyncLayerOption(qint64 layerId)

Constructor using a layer ID.

  • layerId - The layer ID.

SyncLayerOption::SyncLayerOption(qint64 layerId, SyncDirection syncDirection)

Constructor using a layer ID and an option for direction in which to sync data with the service.

  • layerId - The layer ID.
  • syncDirection - Specifies the sync direction.

SyncLayerOption::SyncLayerOption(const SyncLayerOption &other)

Copy constructor from other SyncLayerOption.

SyncLayerOption::SyncLayerOption(SyncLayerOption &&other)

Move constructor from other SyncLayerOption.

SyncLayerOption::~SyncLayerOption()

Destructor.

bool SyncLayerOption::isEmpty() const

Returns whether this SyncLayerOption is empty.

If SyncLayerOption is empty, it is not possible to change properties.

qint64 SyncLayerOption::layerId() const

Returns the ID of the layer or table for which these options are defined.

Same as ArcGISFeatureLayerInfo::serverLayerId.

The default value is -1 if SyncLayerOption is empty or 0 if it is not empty.

See also setLayerId().

void SyncLayerOption::setLayerId(qint64 layerOrTableId)

Sets the ID of the layer or table for which these options are defined.

  • layerOrTableId - The ID for the table or layer.

The default value is -1 if SyncLayerOption is empty or 0 if it is not empty.

See also layerId().

void SyncLayerOption::setSyncDirection(SyncDirection syncDirection)

Sets the direction in which to sync the layer's data with the service.

  • syncDirection - The sync direction.

The default value is SyncDirection::None if SyncLayerOption is empty or SyncDirection::Bidirectional if it is not empty.

See also syncDirection().

SyncDirection SyncLayerOption::syncDirection() const

Returns the direction in which to sync data with the service.

The default value is SyncDirection::None if SyncLayerOption is empty, or SyncDirection::Bidirectional if it is not empty.

See also setSyncDirection().

SyncLayerOption &SyncLayerOption::operator=(const SyncLayerOption &other)

Assignment operator from other SyncLayerOption.

SyncLayerOption &SyncLayerOption::operator=(SyncLayerOption &&other)

Move operator from other SyncLayerOption.


Feedback on this topic?