public boolean detectTierRichCss ( ) { boolean result = false ; //The following devices are explicitly ok. //Note: 'High' BlackBerry devices ONLY if ( detectMobileQuick ( ) ) { //Exclude iPhone Tier and e-Ink Kindle devices. if ( ! detectTierIphone ( ) && ! detectKindle ( ) ) { //The following devices are explicitly ok. //Note: 'High' BlackBerry devices ONLY //Older Windows 'Mobile' isn't good enough for iPhone Tier. if ( detectWebkit ( ) || detectS60OssBrowser ( ) || detectBlackBerryHigh ( ) || detectWindowsMobile ( ) || ( userAgent . indexOf ( engineTelecaQ ) != - 1 ) ) { result = true ; } // if detectWebkit() } //if !detectTierIphone() } //if detectMobileQuick() return result ; }
The quick way to detect for a tier of devices . This method detects for devices which are likely to be capable of viewing CSS content optimized for the iPhone but may not necessarily support JavaScript . Excludes all iPhone Tier devices .