summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorFabian Lange <lange.fabian@gmail.com>2013-06-12 15:44:46 +0200
committerVaadin Code Review <review@vaadin.com>2013-06-12 17:02:22 +0000
commit47addab4471b3256b0dd26973abf3f6d80487365 (patch)
treeac93d146e2314d962cf8d7fcb3301898f0d0e0a2 /server
parent15b217d26278471ee713f46340981c862e3839d2 (diff)
downloadvaadin-framework-47addab4471b3256b0dd26973abf3f6d80487365.tar.gz
vaadin-framework-47addab4471b3256b0dd26973abf3f6d80487365.zip
Adding isIOs and isAndroid to the WebBrowser wrapper around VBrowserDetails (#11168)
The information is available from VBrowser and just not exposed via WebBrowser (while isLinux, isMacOSX and isWindows are). Change-Id: I2fd6133f404cb3e1b4fadb93075fda012f70adb6
Diffstat (limited to 'server')
-rw-r--r--server/src/com/vaadin/server/WebBrowser.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/server/src/com/vaadin/server/WebBrowser.java b/server/src/com/vaadin/server/WebBrowser.java
index 8038bbc207..4d1027f0e4 100644
--- a/server/src/com/vaadin/server/WebBrowser.java
+++ b/server/src/com/vaadin/server/WebBrowser.java
@@ -259,6 +259,26 @@ public class WebBrowser implements Serializable {
}
/**
+ * Tests if the browser is run on Android.
+ *
+ * @return true if run on Android false if the user is not using Android or
+ * if no information on the browser is present
+ */
+ public boolean isAndroid() {
+ return browserDetails.isAndroid();
+ }
+
+ /**
+ * Tests if the browser is run in iOS.
+ *
+ * @return true if run in iOS false if the user is not using iOS or if no
+ * information on the browser is present
+ */
+ public boolean isIOS() {
+ return browserDetails.isIOS();
+ }
+
+ /**
* Returns the browser-reported TimeZone offset in milliseconds from GMT.
* This includes possible daylight saving adjustments, to figure out which
* TimeZone the user actually might be in, see