◆ ConfigDeviceDetection()
FiftyoneDegrees::DeviceDetection::ConfigDeviceDetection::ConfigDeviceDetection | ( | fiftyoneDegreesConfigDeviceDetection * | config | ) |
Constructs a new instance of the configuration with a reference to the C configuration provided.
- Parameters
-
- config - pointer to the underlying configuration structure
Member Function Documentation
◆ getAllowUnmatched()
bool FiftyoneDegrees::DeviceDetection::ConfigDeviceDetection::getAllowUnmatched ( ) Get whether there should be at least one matched hash node (or substring) in order for the results to be considered valid.
By default, this is false.
- Returns
- true if results with no matched hash nodes should be considered valid
◆ getMaxMatchedUserAgentLength()
int FiftyoneDegrees::DeviceDetection::ConfigDeviceDetection::getMaxMatchedUserAgentLength ( ) If the matched User-Agent characters should be stored the maximum number which should be available.
- Returns
- the number of characters to store if enabled, otherwise 0.
◆ getUpdateMatchedUserAgent()
bool FiftyoneDegrees::DeviceDetection::ConfigDeviceDetection::getUpdateMatchedUserAgent ( ) Gets whether the characters matched during processing should be stored in results.
- Returns
- true if the characters should be available, otherwise false.
◆ setAllowUnmatched()
void FiftyoneDegrees::DeviceDetection::ConfigDeviceDetection::setAllowUnmatched ( bool allow ) Set whether there should be at least one matched hash node (or substring) in order for the results to be considered valid.
By default, this is false.
- Parameters
-
- allow - true if results with no matched hash nodes should be considered valid
◆ setMaxMatchedUserAgentLength()
void FiftyoneDegrees::DeviceDetection::ConfigDeviceDetection::setMaxMatchedUserAgentLength ( int length ) Set the maximum length string to be allocated to the matched User-Agent.
This is only required if setUpdateMatchedUserAgent is set to true.
- Parameters
-
- length - to set
◆ setUpdateMatchedUserAgent()
void FiftyoneDegrees::DeviceDetection::ConfigDeviceDetection::setUpdateMatchedUserAgent ( bool update ) Set whether or not the matched User-Agent should be constructed.
This is usually only needed for debugging User-Agents. If this is set to true then setMaxMatchedUserAgentLength must be used to provide the number of characters to record.
- Parameters
-
- update - should update the matched User-Agent
The documentation for this class was generated from the following file:- /home/vsts/work/1/s/apis/device-detection-cxx/src/ConfigDeviceDetection.hpp