device

App device

Analyse the user agent
Author:
  • Deux Huit Huit <https://deuxhuithuit.com>
License:
  • MIT
Source:

Members

(static, constant) android

Check if the device run on Android
Source:

(static, constant) chrome

Check if the browser is Chrome
Source:

(static) detector

Object with all the device detection methods
Source:

(static, constant) edge

Check if the browser is Edge
Source:

(static, constant) events

Properties:
Name Type Description
click String Click event
enter String 'pointerenter' equivalent
up String 'pointerup' equivalent
down String 'pointerdown' equivalent
move String 'pointermove' equivalent
over String 'pointerover' equivalent
out String 'pointerout' equivalent
leave String 'pointerleave' equivalent
Source:

(static, constant) firefox

Check if the browser is Firefox
Source:

(static, constant) internetexplorer

Check if the browser is Internet Explorer
Source:

(static, constant) ios

Check if the device run on iOs
Source:

(static, constant) ipad

Check if the device is an iPad
Source:

(static, constant) iphone

Check if the device is an iPhone
Source:

(static, constant) linux

Check if the device run on Linux
Source:

(static, constant) macos

Check if the device run on Max Os
Source:

(static, constant) mobile

Check if the device is a mobile
Source:

(static, constant) phone

Check if the device is a phone
Source:

(static, constant) safari

Check if the browser is Safari
Source:

(static, constant) tablet

Check if the device is a tablet
Source:

(static, constant) windows

Check if the device run on Windows
Source: