Options
All
  • Public
  • Public/Protected
  • All
Menu

Analyzes the given user agent string and returns information about the browser it represents.

param userAgent

A user agent string, such as the one in window.navigator.userAgent.

returns

Details about the given browser.

Hierarchy

Index

Properties

android?: boolean

true if the current browser is an Android browser, false otherwise.

bb?: boolean

true if the current browser is a BB browser, false otherwise.

blackberry?: boolean

true if the current browser is a Blackberry browser, false otherwise.

chrome?: boolean

true if the current browser is a Chrome browser, false otherwise.

cros?: boolean

true if the current browser is a Chromium OS browser, false otherwise.

desktop?: boolean

true if the current browser is a desktop browser, false otherwise.

edge?: boolean

true if the current browser is an Edge browser, false otherwise.

iemobile?: boolean

true if the current browser is an IE mobile browser, false otherwise.

ipad?: boolean

true if the current browser is an iPad browser, false otherwise.

iphone?: boolean

true if the current browser is an iPhone browser, false otherwise.

ipod?: boolean

true if the current browser is an iPod browser, false otherwise.

kindle?: boolean

true if the current browser is a Kindle browser, false otherwise.

linux?: boolean

true if the current browser is a Linux browser, false otherwise.

mac?: boolean

true if the current browser is a Mac browser, false otherwise.

mobile?: boolean

true if the current browser is a mobile browser, false otherwise.

mozilla?: boolean

true if the current browser is a Mozilla browser, false otherwise.

msedge?: boolean

true if the current browser is an MS Edge browser, false otherwise.

msie?: boolean

true if the current browser is the Internet Explorer browser, false otherwise.

name: string

The name of the current browser.

opera?: boolean

true if the current browser is an Opera browser, false otherwise.

opr?: boolean

true if the current browser is an Opr browser, false otherwise.

platform: string

The current platform (operating system).

playbook?: boolean

true if the current browser is a PlayBook browser, false otherwise.

rv?: boolean

true if the current browser is an RV browser, false otherwise.

safari?: boolean

true if the current browser is a Safari browser, false otherwise.

silk?: boolean

true if the current browser is a Silk browser, false otherwise.

version?: string

The version string of the current browser.

versionNumber?: number

The version number of the current browser.

webkit?: boolean

true if the current browser is a Webkit browser, false otherwise.

win?: boolean

true if the current browser is a Windows browser, false otherwise.

windows phone?: boolean

true if the current browser is a Windows Phone browser, false otherwise.

Methods

Generated using TypeDoc