\r\n

51Degrees Device Detection Node.js  4.3

51Degrees Device Detection for Node.js

DeviceDetectionCloudPipelineBuilder Class Reference

Detailed Description

Examples
cloud/failureToMatch.js, cloud/gettingStarted.js, cloud/metadata.js, cloud/userAgentClientHints.js, cloud/userAgentClientHintsWeb.js, and cloud/webIntegration.js.

Inheritance diagram for DeviceDetectionCloudPipelineBuilder:

[legend]

Collaboration diagram for DeviceDetectionCloudPipelineBuilder:

[legend]

Public Member Functions

 constructor ({ licenceKeys=null, shareUsage=true, resourceKey=null, cacheSize=null, cloudEndPoint=null, cloudRequestOrigin=null })
Extension of pipelineBuilder class that allows for the quick generation of a device detection cloud pipeline. More...

Member Function Documentation

◆ constructor()

DeviceDetectionCloudPipelineBuilder::constructor (   { licenceKeys=null, shareUsage=true, resourceKey=null, cacheSize=null, cloudEndPoint=null, cloudRequestOrigin=null } )
inline

Extension of pipelineBuilder class that allows for the quick generation of a device detection cloud pipeline.

Adds share usage, caching.

Parameters
{object} - options the options for the pipeline builder
{string} - options.licenceKeys license key(s) used by the data file update service. A key can be obtained from the 51Degrees website: https://51degrees.com/pricing. This parameter MUST be set when using a data file. If you do not wish to use a key then you can specify an empty string, but this will cause automatic updates to be disabled.
{boolean} - options.shareUsage whether to include the share usage element
{string} - options.resourceKey resourceKey
{number} - options.cacheSize size of the default cache (includes cache if set).
{string} - options.cloudEndPoint Choose a non default endpoint for the cloud request engine
{string} - options.cloudRequestOrigin The value to set the Origin header to when making requests to the cloud service