Skip to content
kerrishotts edited this page Nov 12, 2012 · 1 revision

(part of PKDEVICE)

DEPRECATED

Return Type: boolean

Attempts to determine if the device has a Retina-quality screen. Applicable only to iOS platforms, this value returns true if window.devicePixelRatio is greater than 1, and false otherwise. While this method will return a value on other platforms, it may not indicate the presence of what Apple would term a "retina" display. For example, if on a Nexus 7, the pixel ratio is ~1.3, which would result in true. That said, the screen is not retina quality.

For example:

PKDEVICE.isRetina();
// returns true

There are very little reasons to use this method -- you can handle retina vs. non-retina assets in other ways that don't require looking at this value.

Version

0.1 Introduced

0.2 Docs Valid, Deprecated

Clone this wiki locally