UADetect exactMobileDeviceType
Componet
Description
Get's the name of the MOBILE Operating System the client is using.
Possible Returns
iOS
Android
BlackBerry
Windows Phone
webOS
unknown
Usage Example
#1
import { exactMobileDeviceType } from 'uadetect';if (exactMobileDeviceType === 'iOS') { downloadOniOS.innerHTML = 'Download on iOS!';}
#2
import { exactMobileDeviceType } from 'uadetect';if (exactMobileDeviceType === 'Android') { downloadOnAndroid.innerHTML = 'Download on Android!'; }
#3
if (exactMobileDeviceType === 'Windows Phone') { ew.innerHTML = 'Who uses windows phone???';}
Table of Contents