| Package | feathers.system |
| Class | public class DeviceCapabilities |
| Inheritance | DeviceCapabilities Object |
| Property | Defined By | ||
|---|---|---|---|
| dpi : int [static]
The DPI to be used by Feathers. | DeviceCapabilities | ||
| screenPixelHeight : Number = NaN [static]
A custom height, in pixels, to use for calculations of the device's
physical screen size. | DeviceCapabilities | ||
| screenPixelWidth : Number = NaN [static]
A custom width, in pixels, to use for calculations of the device's
physical screen size. | DeviceCapabilities | ||
| tabletScreenMinimumInches : Number = 5 [static]
The minimum physical size, in inches, of the device's larger side to
be considered a tablet. | DeviceCapabilities | ||
| Method | Defined By | ||
|---|---|---|---|
isPhone(stage:Stage):Boolean [static]
Determines if this device is probably a phone, based on the physical
width and height, in inches, calculated using the full-screen
dimensions and the screen DPI. | DeviceCapabilities | ||
isTablet(stage:Stage):Boolean [static]
Determines if this device is probably a tablet, based on the physical
width and height, in inches, calculated using the full-screen
dimensions and the screen DPI. | DeviceCapabilities | ||
screenInchesX(stage:Stage):Number [static]
The physical width of the device, in inches. | DeviceCapabilities | ||
screenInchesY(stage:Stage):Number [static]
The physical height of the device, in inches. | DeviceCapabilities | ||
| dpi | property |
public static var dpi:int
The DPI to be used by Feathers. Defaults to the value of
Capabilities.screenDPI, but may be overridden. For
example, if one wishes to demo a mobile app in the desktop browser,
a custom DPI will override the real DPI of the desktop screen.
| screenPixelHeight | property |
public static var screenPixelHeight:Number = NaNA custom height, in pixels, to use for calculations of the device's physical screen size. Set to NaN to use the actual height.
| screenPixelWidth | property |
public static var screenPixelWidth:Number = NaNA custom width, in pixels, to use for calculations of the device's physical screen size. Set to NaN to use the actual width.
| tabletScreenMinimumInches | property |
public static var tabletScreenMinimumInches:Number = 5The minimum physical size, in inches, of the device's larger side to be considered a tablet.
| isPhone | () | method |
public static function isPhone(stage:Stage):BooleanDetermines if this device is probably a phone, based on the physical width and height, in inches, calculated using the full-screen dimensions and the screen DPI.
Parameters
stage:Stage |
Boolean |
| isTablet | () | method |
public static function isTablet(stage:Stage):BooleanDetermines if this device is probably a tablet, based on the physical width and height, in inches, calculated using the full-screen dimensions and the screen DPI.
Parameters
stage:Stage |
Boolean |
| screenInchesX | () | method |
public static function screenInchesX(stage:Stage):NumberThe physical width of the device, in inches. Calculated using the full-screen width and the screen DPI.
Parameters
stage:Stage |
Number |
| screenInchesY | () | method |
public static function screenInchesY(stage:Stage):NumberThe physical height of the device, in inches. Calculated using the full-screen height and the screen DPI.
Parameters
stage:Stage |
Number |