public
\Bitrix\Conversion\Internals\MobileDetect::__construct(
array $headers = null,
string $userAgent = null
);
Construct an instance of this class.
Parameters
ParameterDescriptionVersion
$headersSpecify the headers as injection. Should be PHP _SERVER flavored. If left empty, will use the global SERVER['HTTP*'] vars instead.
$userAgentInject the User-Agent header. If null, will use HTTP_USER_AGENT from the $headers array instead.
Examples