/** * Detects if the current device is an iPad tablet. * * @return detection of an iPad */ public boolean detectIpad() { if (userAgent.indexOf(deviceIpad) != -1 && detectWebkit()) { return true; } return false; }
/** * Detects if the current device is an iPad tablet. * * @return detection of an iPad */ public boolean detectIpad() { if (userAgent.indexOf(deviceIpad) != -1 && detectWebkit()) { return true; } return false; }
/** * Detects if the current device is an iPad tablet. * * @return detection of an iPad */ public boolean detectIpad() { if (userAgent.indexOf(deviceIpad) != -1 && detectWebkit()) { return true; } return false; }
/** * Detects if the current browser is the Symbian S60 Open Source Browser. * * @return detection of Symbian S60 Browser */ public boolean detectS60OssBrowser() { // First, test for WebKit, then make sure it's either Symbian or S60. if (detectWebkit() && (userAgent.indexOf(deviceSymbian) != -1 || userAgent.indexOf(deviceS60) != -1)) { return true; } return false; }
/** * Detects if the current browser is the Symbian S60 Open Source Browser. * * @return detection of Symbian S60 Browser */ public boolean detectS60OssBrowser() { // First, test for WebKit, then make sure it's either Symbian or S60. if (detectWebkit() && (userAgent.indexOf(deviceSymbian) != -1 || userAgent.indexOf(deviceS60) != -1)) { return true; } return false; }
/** * Detects if the current browser is the Symbian S60 Open Source Browser. * * @return detection of Symbian S60 Browser */ public boolean detectS60OssBrowser() { // First, test for WebKit, then make sure it's either Symbian or S60. if (detectWebkit() && (userAgent.indexOf(deviceSymbian) != -1 || userAgent.indexOf(deviceS60) != -1)) { return true; } return false; }
/** * Detects if the current browser is a BlackBerry device AND uses a WebKit-based browser. These are signatures for * the new BlackBerry OS 6. Examples: Torch. Includes the Playbook. * * @return detection of a Blackberry device with WebKit browser */ public boolean detectBlackBerryWebKit() { if (detectBlackBerry() && detectWebkit()) return true; return false; }
/** * Detects if the current device is an Android OS-based device and the browser is based on WebKit. * * @return detection of an Android WebKit browser */ public boolean detectAndroidWebKit() { if (detectAndroid() && detectWebkit()) { return true; } return false; }
/** * Detects if the current device is an Android OS-based device and the browser is based on WebKit. * * @return detection of an Android WebKit browser */ public boolean detectAndroidWebKit() { if (detectAndroid() && detectWebkit()) { return true; } return false; }
/** * Detects if the current browser is a BlackBerry device AND uses a WebKit-based browser. These are signatures for * the new BlackBerry OS 6. Examples: Torch. Includes the Playbook. * * @return detection of a Blackberry device with WebKit browser */ public boolean detectBlackBerryWebKit() { if (detectBlackBerry() && detectWebkit()) return true; return false; }
/** * Detects if the current browser is a BlackBerry device AND uses a WebKit-based browser. These are signatures for * the new BlackBerry OS 6. Examples: Torch. Includes the Playbook. * * @return detection of a Blackberry device with WebKit browser */ public boolean detectBlackBerryWebKit() { if (detectBlackBerry() && detectWebkit()) return true; return false; }
/** * Detects if the current device is an Android OS-based device and the browser is based on WebKit. * * @return detection of an Android WebKit browser */ public boolean detectAndroidWebKit() { if (detectAndroid() && detectWebkit()) { return true; } return false; }
if (detectWebkit() || detectS60OssBrowser() || detectBlackBerryHigh()
if (detectWebkit() || detectS60OssBrowser() || detectBlackBerryHigh()
if (detectWebkit() || detectS60OssBrowser() || detectBlackBerryHigh()
/** * Initialize Key Stored Values. */ public void initDeviceScan() { // Save these properties to speed processing this.isWebkit = detectWebkit(); this.isIphone = detectIphone(); this.isAndroid = detectAndroid(); this.isAndroidPhone = detectAndroidPhone(); // Generally, these tiers are the most useful for web development this.isMobilePhone = detectMobileQuick(); this.isTierTablet = detectTierTablet(); this.isTierIphone = detectTierIphone(); // Optional: Comment these out if you NEVER use them this.isTierRichCss = detectTierRichCss(); this.isTierGenericMobile = detectTierOtherPhones(); this.initCompleted = true; }
/** * Initialize Key Stored Values. */ public void initDeviceScan() { // Save these properties to speed processing this.isWebkit = detectWebkit(); this.isIphone = detectIphone(); this.isAndroid = detectAndroid(); this.isAndroidPhone = detectAndroidPhone(); // Generally, these tiers are the most useful for web development this.isMobilePhone = detectMobileQuick(); this.isTierTablet = detectTierTablet(); this.isTierIphone = detectTierIphone(); // Optional: Comment these out if you NEVER use them this.isTierRichCss = detectTierRichCss(); this.isTierGenericMobile = detectTierOtherPhones(); this.initCompleted = true; }
/** * Initialize Key Stored Values. */ public void initDeviceScan() { // Save these properties to speed processing this.isWebkit = detectWebkit(); this.isIphone = detectIphone(); this.isAndroid = detectAndroid(); this.isAndroidPhone = detectAndroidPhone(); // Generally, these tiers are the most useful for web development this.isMobilePhone = detectMobileQuick(); this.isTierTablet = detectTierTablet(); this.isTierIphone = detectTierIphone(); // Optional: Comment these out if you NEVER use them this.isTierRichCss = detectTierRichCss(); this.isTierGenericMobile = detectTierOtherPhones(); this.initCompleted = true; }