\r\n

51Degrees Device Detection Node.js  4.4

51Degrees Device Detection for Node.js

DeviceDetectionDataFile Class Reference

Detailed Description

Instance of DataFile class for the Device Detection Engine Extends datafile by providing a formatter for the DataFileUpdateService update url which contains the product, type and licensekeys.

These paramaters are passed in to the datafile constructor's updateURLParams parameter

Parameters
{string} - options.useUrlFormatter whether to append default URL params for Data File download

Inheritance diagram for DeviceDetectionDataFile:

[legend]

Collaboration diagram for DeviceDetectionDataFile:

[legend]

Public Member Functions

 constructor ({ useUrlFormatter=true,...rest })
 urlFormatter ()
Uses the product, type and licensekey parameters the datafile was constructed with to generate a querystring used in the datafile update service. More...

Member Function Documentation

◆ urlFormatter()

DeviceDetectionDataFile::urlFormatter ( )
inline

Uses the product, type and licensekey parameters the datafile was constructed with to generate a querystring used in the datafile update service.

Returns
{string} url