Support.mobileOS
fieldsReturns a number of properties that identify the current mobile browser. Parses navigator.userAgent to do it. False on desktop.
support.mobileOS
Objectsupport.mobileOS.appMode
BooleanReturns true if running in application mode - pinned to desktop in iOS or running in PhoneGap/WebView.
support.mobileOS.browser
StringReturns the current browser identifier or "default" if the browser is the native one, can be "omini", "omobile", "firefox", "mobilesafari", "webkit", "ie", "default".
Default: "default"
support.mobileOS.cordova
BooleanReturns true if running in a Cordova/PhoneGap/Telerik AppBuilder application.
support.mobileOS.device
StringReturns the current mobile device identifier, can be "fire", "android", "iphone", "ipad", "meego", "webos", "blackberry", "playbook", "wp", "windows".
A convenience property to allow easier version checks, for instance:
var os = kendo.support.mobileOS;
if (os.ios && os.flatVersion >= 400 && os.flatVersion < 500) {
// Do something in iOS 4.x
}
The current OS major version, e.g. "5" in iOS 5.1.
The current OS minor versions, e.g. "1.1" in iOS 5.1.1.
support.mobileOS.name
StringReturns the current os name identifier, can be "ios", "android", "blackberry", "windows", "webos", "meego". For convenience a property with the os name is also initialized, for instance:
if (kendo.support.mobileOS.android) {
// Do something in Android
}
support.mobileOS.tablet
StringReturns the current tablet identifier or false if the current device is not a tablet, can be "fire", "ipad", "playbook" or false.
Default: false