featureLayer.addLoadStatusChangedListener(new LoadStatusChangedListener() {
@Override
public void loadStatusChanged(LoadStatusChangedEvent loadStatusChangedEvent) {
loadStatusChangedEvent.getNewLoadStatus();
}
});
I am using this piece of code to know that my layer is failed to load but where can I know the reason of failure, does such a function exist to state it?
Solved! Go to Solution.
featureLayer.getLoadStatus() helped me.
featureLayer.getLoadStatus() helped me.