[url=https://dev.1c-bitrix.ru/api_d7/detail.php?ID=1932461]Конструктор MobileDetect[/url]
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