Class LayerViewState


  • public final class LayerViewState
    extends java.lang.Object
    A 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 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 therefore NOT_VISIBLE, or may be NOT_VISIBLE because it is currently OUT_OF_SCALE. If the layer is ACTIVE, this can be combined with LayerViewStatus.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