NukeViet\Client\Browser::checkBrowserAndroid PHP Метод

checkBrowserAndroid() защищенный Метод

Determine if the browser is Android or not (last updated 1.7)
protected checkBrowserAndroid ( ) : boolean
Результат boolean True if the browser is Android otherwise false
    protected function checkBrowserAndroid()
    {
        if (stripos($this->_agent, 'Android') !== false) {
            $aresult = explode(' ', stristr($this->_agent, 'Android'));
            if (isset($aresult[1])) {
                $aversion = explode(' ', $aresult[1]);
                $this->setVersion($aversion[0]);
            } else {
                $this->setVersion(self::VERSION_UNKNOWN);
            }
            if (stripos($this->_agent, 'Mobile') !== false) {
                $this->setMobile(true);
            } else {
                $this->setTablet(true);
            }
            $this->setBrowser(self::BROWSER_ANDROID, self::BROWSER_ANDROID_NAME);
            return true;
        }
        return false;
    }