Lines Matching full:device

4  * Device Detector - The Universal Device Detection library for parsing User Agents
26 use DeviceDetector\Parser\Device\AbstractDeviceParser;
27 use DeviceDetector\Parser\Device\Camera;
28 use DeviceDetector\Parser\Device\CarBrowser;
29 use DeviceDetector\Parser\Device\Console;
30 use DeviceDetector\Parser\Device\HbbTv;
31 use DeviceDetector\Parser\Device\Mobile;
32 use DeviceDetector\Parser\Device\Notebook;
33 use DeviceDetector\Parser\Device\PortableMediaPlayer;
34 use DeviceDetector\Parser\Device\ShellTv;
43 * Magic Device Type Methods:
109 * Holds the device type after parsing the UA
112 protected $device = null; variable in DeviceDetector\\DeviceDetector
115 * Holds the device brand data after parsing the UA
121 * Holds the device model data after parsing the UA
359 * Returns if the parsed UA was identified as a touch enabled device
373 * Returns if the parsed UA is detected as a mobile device
379 // Client hints indicate a mobile device
384 // Mobile device types
385 if (\in_array($this->device, [
397 // non mobile device types
398 if (\in_array($this->device, [
422 * Returns if the parsed UA was identified as desktop device
483 * Returns the device type extracted from the parsed UA
487 * @see AbstractDeviceParser::$deviceTypes for available device types
492 return $this->device;
496 * Returns the device type extracted from the parsed UA
500 * @see AbstractDeviceParser::$deviceTypes for available device types
513 * Returns the device brand extracted from the parsed UA
517 * @see self::$deviceBrand for available device brands
527 * Returns the full device brand name extracted from the parsed UA
531 * @see self::$deviceBrand for available device brands
540 * Returns the device model extracted from the parsed UA
686 'device' => [
887 * Tries to detect the device type, model and brand
900 $this->device = $parser->getDeviceType();
935 $this->device = null;
950 if (null === $this->device && $this->hasAndroidVRFragment()) {
951 $this->device = AbstractDeviceParser::DEVICE_TYPE_WEARABLE;
955 * Chrome on Android passes the device type based on the keyword 'Mobile'
956 * If it is present the device should be a smartphone, otherwise it's a tablet
961 if (null === $this->device && 'Android' === $osFamily
965 $this->device = AbstractDeviceParser::DEVICE_TYPE_SMARTPHONE;
967 $this->device = AbstractDeviceParser::DEVICE_TYPE_TABLET;
974 …if (AbstractDeviceParser::DEVICE_TYPE_SMARTPHONE === $this->device && $this->matchUserAgent('Pad/A…
975 $this->device = AbstractDeviceParser::DEVICE_TYPE_TABLET;
981 if (null === $this->device && ($this->hasAndroidTableFragment()
984 $this->device = AbstractDeviceParser::DEVICE_TYPE_TABLET;
990 if (null === $this->device && $this->hasAndroidMobileFragment()) {
991 $this->device = AbstractDeviceParser::DEVICE_TYPE_SMARTPHONE;
1000 * Devices running Android 3.X are tablets. Device type of Android 2.X and 4.X+ are unknown
1002 if (null === $this->device && 'Android' === $osName && '' !== $osVersion) {
1004 $this->device = AbstractDeviceParser::DEVICE_TYPE_SMARTPHONE;
1008 $this->device = AbstractDeviceParser::DEVICE_TYPE_TABLET;
1015 …if (AbstractDeviceParser::DEVICE_TYPE_FEATURE_PHONE === $this->device && 'Android' === $osFamily) {
1016 $this->device = AbstractDeviceParser::DEVICE_TYPE_SMARTPHONE;
1022 if ('Java ME' === $osName && null === $this->device) {
1023 $this->device = AbstractDeviceParser::DEVICE_TYPE_FEATURE_PHONE;
1030 $this->device = AbstractDeviceParser::DEVICE_TYPE_FEATURE_PHONE;
1043 if (null === $this->device && ('Windows RT' === $osName || ('Windows' === $osName
1046 $this->device = AbstractDeviceParser::DEVICE_TYPE_TABLET;
1052 if (null === $this->device && $this->matchUserAgent('Puffin/(?:\d+[.\d]+)[LMW]D')) {
1053 $this->device = AbstractDeviceParser::DEVICE_TYPE_DESKTOP;
1059 if (null === $this->device && $this->matchUserAgent('Puffin/(?:\d+[.\d]+)[AIFLW]P')) {
1060 $this->device = AbstractDeviceParser::DEVICE_TYPE_SMARTPHONE;
1066 if (null === $this->device && $this->matchUserAgent('Puffin/(?:\d+[.\d]+)[AILW]T')) {
1067 $this->device = AbstractDeviceParser::DEVICE_TYPE_TABLET;
1074 $this->device = AbstractDeviceParser::DEVICE_TYPE_TV;
1081 $this->device = AbstractDeviceParser::DEVICE_TYPE_TV;
1088 $hasDeviceTvType = false === \in_array($this->device, [
1094 $this->device = AbstractDeviceParser::DEVICE_TYPE_TV;
1100 if (null === $this->device && $this->matchUserAgent('SmartTV|Tizen.+ TV .+$')) {
1101 $this->device = AbstractDeviceParser::DEVICE_TYPE_TV;
1112 $this->device = AbstractDeviceParser::DEVICE_TYPE_TV;
1118 if (null === $this->device && $this->matchUserAgent('\(TV;')) {
1119 $this->device = AbstractDeviceParser::DEVICE_TYPE_TV;
1123 * Set device type desktop if string ua contains desktop
1125 $hasDesktop = AbstractDeviceParser::DEVICE_TYPE_DESKTOP !== $this->device
1130 $this->device = AbstractDeviceParser::DEVICE_TYPE_DESKTOP;
1133 …// set device type to desktop for all devices running a desktop os that were not detected as anoth…
1134 if (null !== $this->device || !$this->isDesktop()) {
1138 $this->device = AbstractDeviceParser::DEVICE_TYPE_DESKTOP;
1177 $this->device = null;