Automattic\WooCommerce\Vendor\Detection

MobileDetect::__constructpublicWC 1.0

Construct an instance of this class.

Method of the class: MobileDetect{}

No Hooks.

Returns

null. Nothing (null).

Usage

$MobileDetect = new MobileDetect();
$MobileDetect->__construct( ?array $headers, ?string $userAgent );
?array $headers
.
Default: null
?string $userAgent
.
Default: null

MobileDetect::__construct() code WC 10.3.6

public function __construct(?array $headers = null, ?string $userAgent = null)
{
    $this->setHttpHeaders($headers);
    $this->setUserAgent($userAgent);
}