Loading...

Exit

About System info Extension

iui-system-info.js is an extension for the iUI framework. It gives system information in order to perform device detection. It may also be useful for the webapp developer you are to detect screen resolution, navigation mode, device capabilites & browser version.

Remi Grumeau

Documentation

OS Name

iui.sysinfo.os.name
Based on user-agent.

- android
- bada
- blackberry
- ios
- macos
- maemo
- playbook
- webos
- windows

OS Version

iui.sysinfo.os.version
Based on user-agent.

- returns OS version number based on user-agent (or xp/vista/seven for windows)

OS language

iui.sysinfo.os.lang
Based on navigator.language

- returns the 2 first letters

Device company

iui.sysinfo.device.vendor
Based on user-agent.

- apple
- google
- htc
- motorola
- nokia
- rim
- samsung
- unknow

Device type

iui.sysinfo.device.type
Based on user-agent.

- phone
- pod
- tablet
- desktop

Touch-screen device

iui.sysinfo.device.touch
Based on Touch

- true / false

GPS capable

iui.sysinfo.device.gps
Based on navigator.geolocation

- true / false

Orientation

iui.sysinfo.device.orientation
Based on window.onorientation.

- true / false

Browser name

iui.sysinfo.browser.name
Based on user-agent

- blackberry
- chrome
- dolfin
- fennec
- firefox
- ie
- safari
- opera
- opera_mobile
- unknow

Browser version

iui.sysinfo.browser.version
Based on user-agent

- 4 / 5 / 6 (Blackberry)
- 4 / 5 (Chrome)
- 2 / 3 / 3.5 / 3.6 (Firefox)
- 1 (Fennec)
- 6 / 7 / 8 / 9 (IE)
- 8 / 9 / 10 (Opera)
- 1 (Playbook)
- 3 / 4 / 4.1 / 5 (Safari)
- unknow

Webapp capable

iui.sysinfo.browser.webapp
Based on window.navigator.standalone

- true / false

Webapp mode (available on iOS only for now - 2011)

iui.sysinfo.browser.standalone
Based on window.navigator.standalone

- true / false

Viewport width

iui.sysinfo.screen.width
Based on window.innerWidth

- returns the value, in pixels

Viewport height

iui.sysinfo.screen.height
Based on window.innerHeight

- returns the value, in pixels

Cookies enable

iui.sysinfo.storage.cookie
Based on navigator.cookieEnabled

- true / false

Session Storage

iui.sysinfo.storage.session
- true / false

Local Storage

iui.sysinfo.storage.local
- true / false

LocalDatabase

iui.sysinfo.storage.database
- true / false

WebKitTransitionEvent

iui.sysinfo.webkit.transition
- true / false

WebKitPoint

iui.sysinfo.webkit.points
- true / false

WebKitCSSTransformValue

iui.sysinfo.webkit.transform
- true / false

WebKitCSSMatrix

iui.sysinfo.webkit.matrix
- true / false