Options
All
  • Public
  • Public/Protected
  • All
Menu

Gets information about the browser environment.

Index

Functions

getOsName

  • getOsName(): string
  • Returns string

getOsVersion

  • getOsVersion(): string
  • Returns string

isBrowser

  • Check if we are running inside a specific browser.

    example

    let isFirefox = BrowserDetector.isBrowser('firefox')

    Parameters

    Returns boolean

isOS

  • isOS(os: "Bada" | "BlackBerry" | "Tizen" | "Roku" | "Windows" | "iOS" | "Android" | "WebOS" | "Linux" | "Windows Phone" | "macOS" | "Chrome OS" | "PlayStation 4"): boolean
  • Parameters

    • os: "Bada" | "BlackBerry" | "Tizen" | "Roku" | "Windows" | "iOS" | "Android" | "WebOS" | "Linux" | "Windows Phone" | "macOS" | "Chrome OS" | "PlayStation 4"

    Returns boolean

isPlatform

isRenderingEngine

  • If we are running a specific rendering engine.

    example

    let isBlinkEngine = BrowserDetector.isRenderingEngine('blink')

    Parameters

    Returns boolean

isSupportedBrowser

  • Use it to check if we are running in a specific browser and version.

    example

    { "Internet Explorer": ">=11", "Firefox": ">4" }

    Parameters

    Returns boolean

Generated using TypeDoc