Class LayerViewState
- java.lang.Object
-
- com.esri.arcgisruntime.mapping.view.LayerViewState
-
public final class LayerViewState extends java.lang.ObjectA layer view state object.This object allows you to know the current state of a layer in a view.
- Since:
- 100.10.0
- See Also:
GeoView.getViewStateForLayer(Layer)
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArcGISRuntimeExceptiongetError()Gets the layer view error from the layer view state.java.util.EnumSet<LayerViewStatus>getStatus()Returns a set of view states that apply to a layer.
-
-
-
Method Detail
-
getError
public ArcGISRuntimeException getError()
Gets the layer view error from the layer view state.- Returns:
- the layer view error from the layer view state, or null if none
- Since:
- 100.10.0
-
getStatus
public java.util.EnumSet<LayerViewStatus> getStatus()
Returns a set of view states that apply to a layer. This can be used, for example, to report layer status in a map legend or table of contents.Each layer may have more than one view status; for example, a layer may be
LOADING, and thereforeNOT_VISIBLE, or may beNOT_VISIBLEbecause it is currentlyOUT_OF_SCALE. If the layer isACTIVE, this can be combined withLayerViewStatus.WARNING. For child layers of group layers, the parent layers status is taken into account.- Returns:
- the layer view status(es) which apply to the given layer
- Since:
- 100.10.0
-
-