\r\n

51Degrees Device Detection C/C++  4.5

A device detection library that is used natively or by 51Degrees products

fiftyoneDegreesConfigDeviceDetection Struct Reference

Detailed Description

Device detection configuration structure containing device detection specific configuration options, and options that apply to structures and methods in device detection libraries.

Collaboration diagram for fiftyoneDegreesConfigDeviceDetection:

[legend]

Data Fields

fiftyoneDegreesConfigBase  b
Base structure members.
bool  updateMatchedUserAgent
True if the detection should record the matched characters from the target User-Agent.
size_t  maxMatchedUserAgentLength
Number of characters to consider in the matched User-Agent. More...
bool  allowUnmatched
True if there should be at least one matched node in order for the results to be considered valid. More...
bool  processSpecialEvidence
Some evidence requires additional processing that doesn't need to be checked for if being used in an environment that doesn't generate it. More...

Field Documentation

◆ allowUnmatched

bool fiftyoneDegreesConfigDeviceDetection::allowUnmatched

True if there should be at least one matched node in order for the results to be considered valid.

By default, this is false

◆ maxMatchedUserAgentLength

size_t fiftyoneDegreesConfigDeviceDetection::maxMatchedUserAgentLength

Number of characters to consider in the matched User-Agent.

Ignored if updateMatchedUserAgent is false.

◆ processSpecialEvidence

bool fiftyoneDegreesConfigDeviceDetection::processSpecialEvidence

Some evidence requires additional processing that doesn't need to be checked for if being used in an environment that doesn't generate it.

For example; GHEV and SUA query evidence. By default, this is true.

Examples
Hash/GettingStarted.c, and Hash/Performance.c.

The documentation for this struct was generated from the following file:
  • /home/runner/work/device-detection-cxx/device-detection-cxx/common/device-detection-cxx/src/config-dd.h
On This Page