Helper class for determining device information.

Constructors

Accessors

  • get browserName(): string
  • Returns the name of the browser being used.

    Returns string

  • get browserVersion(): string
  • Returns the version of the browser being used.

    Returns string

  • get deviceType(): string
  • Returns the type of device being used.

    Returns string

  • get ip(): string
  • Returns the IP of the device being used.

    Returns string

    Deprecated

    IP is calculated by the server, this method should not be used and will always return undefined.

  • get osName(): string
  • Returns the name of the operating system being used.

    Returns string

Methods

  • Returns a promise that resolves when the device information is done being collected.

    Returns Promise<void>

    Deprecated

    Device information collection happens instantaneously and awaiting this function is no longer necessary.

Generated using TypeDoc