src/aria/utils/Device.js
function () {
            // -------------------------------------------- result initial value

            var result = false;

            // -------------------------------------------------- standard check

            var deviceType = this.__userAgentWrapper.results.device.type;

            if (!result) {
                if (deviceType != null) {
                    result = UserAgent.normalizeName(deviceType) == "mobile";
                }
            }

            // --------------------------------------------------- special cases

            if (!result) {
                if (!this.isTablet()) {
                    result = ariaCoreBrowser.isAndroid
                    || ariaCoreBrowser.isBlackBerry
                    || ariaCoreBrowser.isIOS
                    || ariaCoreBrowser.isSymbian
                    || ariaCoreBrowser.isWindowsPhone
                    || UserAgent.normalizeName(ariaCoreBrowser.osName) == "webos"
                    ;
                }
            }

            // ---------------------------------------------------------- result

            return !!result;
        }
function () {
            // -------------------------------------------- result initial value

            var result = false;

            // -------------------------------------------------- standard check

            var deviceType = this.__userAgentWrapper.results.device.type;

            if (!result) {
                if (deviceType != null) {
                    result = UserAgent.normalizeName(deviceType) == "mobile";
                }
            }

            // --------------------------------------------------- special cases

            if (!result) {
                if (!this.isTablet()) {
                    result = ariaCoreBrowser.isAndroid
                    || ariaCoreBrowser.isBlackBerry
                    || ariaCoreBrowser.isIOS
                    || ariaCoreBrowser.isSymbian
                    || ariaCoreBrowser.isWindowsPhone
                    || UserAgent.normalizeName(ariaCoreBrowser.osName) == "webos"
                    ;
                }
            }

            // ---------------------------------------------------------- result

            return !!result;
        }
function ( ) { // -------------------------------------------- result initial value var result = false ; // -------------------------------------------------- standard check var deviceType = this . __userAgentWrapper . results . device . type ; if ( ! result ) { if ( deviceType != null ) { result = UserAgent . normalizeName ( deviceType ) == "mobile" ; } } // --------------------------------------------------- special cases if ( ! result ) { if ( ! this . isTablet ( ) ) { result = ariaCoreBrowser . isAndroid || ariaCoreBrowser . isBlackBerry || ariaCoreBrowser . isIOS || ariaCoreBrowser . isSymbian || ariaCoreBrowser . isWindowsPhone || UserAgent . normalizeName ( ariaCoreBrowser . osName ) == "webos" ; } } // ---------------------------------------------------------- result return ! ! result ; }
Checks whether it is a phone device rather than a tablet.

<p>
We consider that if a mobile operating system is detected but nothing tells that is is a tablet, by default the device is a mobile phone.
</p>

@return {Boolean} <em>true</em> if so, <em>false</em> otherwise
Checks whether it is a phone device rather than a tablet .