D7 API documentation
What's New
Modules
Conversion in the old core
MobileDetect Constructor
__call
checkHttpHeadersForMobile
getBrowsers
getHttpHeader
getHttpHeaders
getMobileDetectionRules
getMobileDetectionRulesExtended
getOperatingSystems
getPhoneDevices
getProperties
getRules
getScriptVersion
getTabletDevices
getUaHttpHeaders
getUserAgent
getUserAgents
getUtilities
is
isMobile
isTablet
match
mobileGrade
prepareVersionNo
setDetectionType
setHttpHeaders
setUserAgent
version
isTablet
boolean public \Bitrix\Conversion\Internals\MobileDetect::isTablet( string $userAgent = null, array $httpHeaders = null );
Non-static method checks for available tablets. Returns true
, when a tablet is detected.
Parameters
Parameter | Description | Version |
---|---|---|
$userAgent | Deprecated parameter. | |
$httpHeaders | Deprecated parameter. |
© «Bitrix24», 2001-2024
Up