Namespace jQuery.device.isModule: jquery.sap.mobile
Holds information about the current device and its state
Deprecated API:since 1.20: use the respective functions of sap.ui.Device
Field Summary
jQuery.device.is.android_phoneWhether the application runs on an Android phone - based not on screen size but user-agent (so this is not guaranteed to be equal to jQuery.device.is.phone on Android) https://developers.google.com/chrome/mobile/docs/user-agent Some device vendors however do not follow this rule
jQuery.device.is.android_tabletWhether the application runs on an Android tablet - based not on screen size but user-agent (so this is not guaranteed to be equal to jQuery.device.is.tablet on Android) https://developers.google.com/chrome/mobile/docs/user-agent Some device vendors however do not follow this rule
jQuery.device.is.desktopWhether the running device is a desktop browser.
jQuery.device.is.ipadWhether the application runs on an iPad
jQuery.device.is.iphoneWhether the application runs on an iPhone
jQuery.device.is.landscapeWhether the device is in "landscape" orientation (also "true" when the device does not know about the orientation)
jQuery.device.is.phoneWhether the running device is a phone.
jQuery.device.is.portraitWhether the device is in portrait orientation
jQuery.device.is.standaloneWhether the application runs in standalone mode without browser UI (launched from the iOS home screen)
jQuery.device.is.tabletWhether the running device is a tablet.
Field Detail
jQuery.device.is.android_phone: boolean
Whether the application runs on an Android phone - based not on screen size but user-agent (so this is not guaranteed to be equal to jQuery.device.is.phone on Android) https://developers.google.com/chrome/mobile/docs/user-agent Some device vendors however do not follow this rule
- Deprecated:
- since 1.17.0: use sap.ui.Device.system.phone && sap.ui.Device.os.android instead
jQuery.device.is.android_tablet: boolean
Whether the application runs on an Android tablet - based not on screen size but user-agent (so this is not guaranteed to be equal to jQuery.device.is.tablet on Android) https://developers.google.com/chrome/mobile/docs/user-agent Some device vendors however do not follow this rule
- Deprecated:
- since 1.17.0: use sap.ui.Device.system.tablet && sap.ui.Device.os.android instead
jQuery.device.is.desktop: boolean
Whether the running device is a desktop browser. If a desktop browser runs in mobile device simulation mode (with URL parameter sap-ui-xx-fakeOS or sap-ui-xx-test-mobile), this property will be false.
- Deprecated:
- since 1.17.0: use sap.ui.Device.system.desktop instead
jQuery.device.is.ipad: boolean
Whether the application runs on an iPad
- Deprecated:
- since 1.20: shouldn't do device specific coding; if still needed, use sap.ui.Device.os.ios && sap.ui.Device.system.tablet
jQuery.device.is.iphone: boolean
Whether the application runs on an iPhone
- Deprecated:
- since 1.20: shouldn't do device specific coding; if still needed, use sap.ui.Device.os.ios && sap.ui.Device.system.phone
jQuery.device.is.landscape: boolean
Whether the device is in "landscape" orientation (also "true" when the device does not know about the orientation)
- Deprecated:
- since 1.20: use sap.ui.Device.orientation.landscape
jQuery.device.is.phone: boolean
Whether the running device is a phone. If a desktop browser runs in mobile device simulation mode (with URL parameter sap-ui-xx-fakeOS or sap-ui-xx-test-mobile), this property will also be set according to the simulated platform. This property will be false when runs in desktop browser.
- Deprecated:
- since 1.17.0: use sap.ui.Device.system.phone instead
jQuery.device.is.portrait: boolean
Whether the device is in portrait orientation
- Deprecated:
- since 1.20: use sap.ui.Device.orientation.portrait
jQuery.device.is.standalone: boolean
Whether the application runs in standalone mode without browser UI (launched from the iOS home screen)
- Deprecated:
- since 1.20: use window.navigator.standalone
jQuery.device.is.tablet: boolean
Whether the running device is a tablet. If a desktop browser runs in mobile device simulation mode (with URL parameter sap-ui-xx-fakeOS or sap-ui-xx-test-mobile), this property will also be set according to the simulated platform. This property will be false when runs in desktop browser.
- Deprecated:
- since 1.17.0: use sap.ui.Device.system.tablet instead