\r\n

51Degrees Device Detection Node.js  4.4

51Degrees Device Detection for Node.js

OptionsExtension Class Reference

Detailed Description

Examples
cloud/gettingstarted-console/gettingStarted.js, cloud/gettingstarted-web/gettingStarted.js, and cloud/taclookup-console/tacLookup.js.

Static Public Member Functions

static  getElement (options, elementName)
Get element by name. More...
static  getDataFilePath (options)
Get Datafile path. More...
static  setDataFilePath (options, newDataFilePath)
Set Datafile path. More...
static  updateElementPath (options, appendDir)
Update Element path. More...
static  getResourceKey (options)
Get resource Key. More...
static  setResourceKey (options, resourceKey)
Set resource key. More...

Member Function Documentation

◆ getDataFilePath()

static OptionsExtension::getDataFilePath (   options )
inline static

Get Datafile path.

Parameters
{object} - options Options
Returns
{string} Datafile path

◆ getElement()

static OptionsExtension::getElement (   options,
  elementName  
)
inline static

Get element by name.

Parameters
{object} - options Options
{string} - elementName Element name
Returns
{object} Element

◆ setDataFilePath()

static OptionsExtension::setDataFilePath (   options,
  newDataFilePath  
)
inline static

Set Datafile path.

Parameters
{object} - options Options
{string} - newDataFilePath New Datafile path

◆ updateElementPath()

static OptionsExtension::updateElementPath (   options,
  appendDir  
)
inline static

Update Element path.

Parameters
{object} - options Options
{string} - appendDir New element path