WhichBrowser\Model\Device::isDetected PHP Method

isDetected() public method

Check if device information is detected
public isDetected ( ) : boolean
return boolean
    public function isDetected()
    {
        return !empty($this->type) || !empty($this->model) || !empty($this->manufacturer);
    }

Usage Example

Example #1
0
 /**
  * Check if a browser was detected
  *
  * @return boolean
  */
 public function isDetected()
 {
     return $this->browser->isDetected() || $this->os->isDetected() || $this->engine->isDetected() || $this->device->isDetected();
 }
All Usage Examples Of WhichBrowser\Model\Device::isDetected