diff options
author | Denis Anisimov <denis@vaadin.com> | 2014-09-07 17:39:56 +0300 |
---|---|---|
committer | Sauli Tähkäpää <sauli@vaadin.com> | 2014-09-24 20:53:06 +0300 |
commit | b288329da7c17b2ebf16069621d5fddd9cb5fcc1 (patch) | |
tree | 20a15b9c1c0c070bdbcd70579fa6bc3e87444c9f /server | |
parent | 8d4edda40179dee1769de19adaefb3a5521a77ac (diff) | |
download | vaadin-framework-b288329da7c17b2ebf16069621d5fddd9cb5fcc1.tar.gz vaadin-framework-b288329da7c17b2ebf16069621d5fddd9cb5fcc1.zip |
WebBrowser.isWindowsPhone() is added (#14425).
Change-Id: Ia279c4da78ca04e0d3727b605e2ce68b99e8cd65
Diffstat (limited to 'server')
-rw-r--r-- | server/src/com/vaadin/server/WebBrowser.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/server/src/com/vaadin/server/WebBrowser.java b/server/src/com/vaadin/server/WebBrowser.java index af20bcbb8f..5ec4e6b19c 100644 --- a/server/src/com/vaadin/server/WebBrowser.java +++ b/server/src/com/vaadin/server/WebBrowser.java @@ -259,6 +259,17 @@ public class WebBrowser implements Serializable { } /** + * Tests whether the user is using Windows Phone. + * + * @return true if the user is using Windows Phone, false if the user is not + * using Windows Phone or if no information on the browser is + * present + */ + public boolean isWindowsPhone() { + return browserDetails.isWindowsPhone(); + } + + /** * Tests if the browser is run on Android. * * @return true if run on Android false if the user is not using Android or |