Documentation

Trace:

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
vaadin:useragent [2018/02/06 11:50]
admin created
vaadin:useragent [2020/07/03 17:06]
cduncan Edited for English grammar (capitalization, punctuation, correct verb conjugation)
Line 1: Line 1:
 ~~NOTRANS~~ ~~NOTRANS~~
-~~Title: Accessing ​user agent~~+~~Title: Accessing ​User Agent~~
  
-Sometimes it's useful to know the browser name which runs the vaadin ​application. It could be useful for showing custom controls or creating responsive layouts.+Sometimes it's useful to know the browser name which runs the Vaadin ​application. It could be useful for showing custom controls or creating responsive layouts.
  
-We have different options to get the name of the browser (user agent). The first one is the recommended option. Simply use your launcher to get the information:​+We have different options to get the name of the browser (user agent). The first one is the recommended option. Simply use your launcher to get the information:​
  
 <file java> <file java>
Line 17: Line 17:
  
 \\  \\ 
-If you need more details about the browser, e.g. if it runs on a mobile device or on a table, simply call+If you need more details about the browser, e.g.if it runs on a mobile device or on a table, simply call
  
 <file java> <file java>
Line 33: Line 33:
 </​file>​ </​file>​
 or or
-</file java>+<file java>
 getLauncher().getParameter("​Web.mobile.phone"​);​ getLauncher().getParameter("​Web.mobile.phone"​);​
 </​file>​ </​file>​
This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information