Skip To Content ArcGIS for Developers Sign In Dashboard

LayerViewState Class


A helper class that provides information about the state of a layer. More...

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

Public Functions

LayerViewState(const LayerViewState &other)
LayerViewState(LayerViewState &&other)
Error error() const
LayerViewStatusFlags statusFlags() const
LayerViewState &operator=(const LayerViewState &other)
LayerViewState &operator=(LayerViewState &&other)

Detailed Description

A helper class that provides information about the state of a layer.

Member Function Documentation


The default constructor.

LayerViewState::LayerViewState(const LayerViewState &other)

The copy constructor from other LayerViewState.

LayerViewState::LayerViewState(LayerViewState &&other)

Move operator from other LayerViewState.


The destructor.

Error LayerViewState::error() const

Gets the layer error.

See also Loadable.

LayerViewStatusFlags LayerViewState::statusFlags() const

Returns the combination of LayerViewStatus enum to describe the current layer view state.

A valid layer state is a bitwise OR combination of the LayerViewStatus enum values.

if (viewState.statusFlags() & Esri::ArcGISRuntime::LayerViewStatus::Active)
  return "Active";
else if (viewState.statusFlags() & Esri::ArcGISRuntime::LayerViewStatus::NotVisible)
  return "Not Visible";
else if (viewState.statusFlags() & Esri::ArcGISRuntime::LayerViewStatus::OutOfScale)
  return "Out of Scale";
else if (viewState.statusFlags() & Esri::ArcGISRuntime::LayerViewStatus::Loading)
  return "Loading";
else if (viewState.statusFlags() & Esri::ArcGISRuntime::LayerViewStatus::Error)
  return "Error";
  return "Unknown";

Note: The return value makes use of the QFlags class. Please see the Qt documentation for more details on usage.

This function was introduced in Esri::ArcGISRuntime 100.1.

See also LayerViewStatus.

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

The assignment operator from other LayerViewState.

LayerViewState &LayerViewState::operator=(LayerViewState &&other)

The move operator from other LayerViewState.

Feedback on this topic?