Checks whether running on a mobile device according to browser data.
Functions (each returns bool):
- Android
- BlackBerry
- iPhone
- iPod
- iPad
- iOS
- Opera
- Windows
- Kindle Fire
- any
isMobile .Android should return true for Android userAgent | Pass |
isMobile .Android should return false for non Android userAgent | Pass |
isMobile .BlackBerry should return true for BlackBerry userAgent | Pass |
isMobile .BlackBerry should return false for non BlackBerry userAgent | Pass |
isMobile .iPhone should return true for iPhone userAgent | Pass |
isMobile .iPhone should return false for non iPhone userAgent | Pass |
isMobile .iPod should return true for iPod userAgent | Pass |
isMobile .iPod should return false for non iPod userAgent | Pass |
isMobile .iPad should return true for iPad userAgent | Pass |
isMobile .iPad should return false for non iPad userAgent | Pass |
isMobile .iOS should return true for iPhone userAgent | Pass |
isMobile .iOS should return true for iPad userAgent | Pass |
isMobile .iOS should return true for iPod userAgent | Pass |
isMobile .iOS should return false for non iOS userAgent | Pass |
isMobile .Opera should return true for Opera userAgent | Pass |
isMobile .Opera should return false for non Opera userAgent | Pass |
isMobile .Windows should return true for Windows userAgent | Pass |
isMobile .Windows should return false for non Windows userAgent | Pass |
isMobile .KindleFire should return true for KindleFire userAgent | Pass |
isMobile .KindleFire should return false for non KindleFire userAgent | Pass |
isMobile .any should return true for any mobile userAgent | Pass |
isMobile .any should return false for desktop userAgent | Pass |