LayerAPI.getCurrentClassifColorScheme

 

int getCurrentClassifColorScheme()

This method returns an integer value of 0, 1, or 2 which indicates RAINBOW, GRAYSCAL, or CUSTOM as the current classification scheme for the layer, if the layer is currently classified.  Otherwise, the return value is undefined.  (See overrideDefaultColorScheme.)