public class BrowserUtil extends Object
| Constructor and Description |
|---|
BrowserUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
browseURL(URL url,
ResultListener<Void> listener)
Opens the user's web browser with the specified URL.
|
static void |
browseURL(URL url,
ResultListener<Void> listener,
String genagent)
Opens the user's web browser with the specified URL.
|
public static void browseURL(URL url, ResultListener<Void> listener)
url - the URL to display in an external browser.listener - a listener to be notified if we failed to launch the
browser. Note: it will not be notified of success.public static void browseURL(URL url, ResultListener<Void> listener, String genagent)
url - the URL to display in an external browser.listener - a listener to be notified if we failed to launch the
browser. Note: it will not be notified of success.genagent - the path to the browser to execute on non-Windows,
non-MacOS.Copyright © 2015. All rights reserved.