LayerViewState Class
A helper class that provides information about the state of a layer. More...
Header: | #include <LayerViewState> |
Since: | Esri::ArcGISRuntime 100.0 |
This class was introduced in Esri::ArcGISRuntime 100.0.
Public Functions
LayerViewState(Esri::ArcGISRuntime::LayerViewState &&other) | |
LayerViewState(const Esri::ArcGISRuntime::LayerViewState &other) | |
LayerViewState() | |
Esri::ArcGISRuntime::LayerViewState & | operator=(Esri::ArcGISRuntime::LayerViewState &&other) |
Esri::ArcGISRuntime::LayerViewState & | operator=(const Esri::ArcGISRuntime::LayerViewState &other) |
~LayerViewState() | |
Esri::ArcGISRuntime::Error | error() const |
Esri::ArcGISRuntime::LayerViewStatusFlags | statusFlags() const |
Detailed Description
Member Function Documentation
LayerViewState::LayerViewState(Esri::ArcGISRuntime::LayerViewState &&other)
Move operator from other LayerViewState.
LayerViewState::LayerViewState(const Esri::ArcGISRuntime::LayerViewState &other)
The copy constructor from other LayerViewState.
LayerViewState::LayerViewState()
The default constructor.
Esri::ArcGISRuntime::LayerViewState &LayerViewState::operator=(Esri::ArcGISRuntime::LayerViewState &&other)
The move operator from other LayerViewState.
Esri::ArcGISRuntime::LayerViewState &LayerViewState::operator=(const Esri::ArcGISRuntime::LayerViewState &other)
The assignment operator from other LayerViewState.
LayerViewState::~LayerViewState()
The destructor.
Esri::ArcGISRuntime::Error LayerViewState::error() const
Gets the layer error.
See also Loadable.
Esri::ArcGISRuntime::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";
else
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.