Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ExpressDeviceDetector

Device detector which extracts device from User-Agent header by using device-detector-js dependency.
Device is stored in the Express request object under DEVICE_SYM symbol.

Hierarchy

  • ExpressDeviceDetector

Implements

Constructors

Methods

Constructors

constructor

Methods

detect

  • detect(req: AdaptedExpressRequest<ParamsDictionary, any, any, ParsedQs, Record<string, any>>): undefined | null | DeviceDetectorResult
  • Parameters

    Returns undefined | null | DeviceDetectorResult