Please describe for what getMainScreenScale

Can anyone of developers explain for what getMainScreenScale have been added?

The corresponding object-c codes is

[[UIScreen mainScreen] scale]

We use it to determine whether the device supports retina display.
More information you can refer iOS documents.