LayerAPI.getType

 

int getType()

This method returns the layer type, an enumeration from 0 through 5, indicating IMAGE, POLYGON, LINE, SYMBOL, NAME, and MIXED.