ViewAPI.getDisplayScale

 

double getDisplayScale()

This method returns the current value of the display scale denominator, i.e. if the display scale is 1:n, the method returns n.  The display scale dynamically changes as the view is resized or zoomed.