public class BrowserBridge extends BaseUIBridge implements IBrowser, APIBridge
apiGroup| Constructor and Description |
|---|
BrowserBridge(IBrowser delegate)
Constructor with delegate.
|
| Modifier and Type | Method and Description |
|---|---|
IBrowser |
getDelegate()
Get the delegate implementation.
|
APIResponse |
invoke(APIRequest request)
Invokes the given method specified in the API request object.
|
boolean |
openExtenalBrowser(java.lang.String url)
Method for opening a URL like a link in the native default browser
|
boolean |
openInternalBrowser(java.lang.String url,
java.lang.String title,
java.lang.String backButtonText)
Method for opening a browser embedded into the application
|
boolean |
openInternalBrowserModal(java.lang.String url,
java.lang.String title,
java.lang.String backButtonText)
Method for opening a browser embedded into the application in a modal window
|
void |
setDelegate(IBrowser delegate)
Set the delegate implementation.
|
getAPIGroup, getAPIVersion, getJSONParserclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAPIGroup, getAPIVersionpublic BrowserBridge(IBrowser delegate)
delegate - The delegate implementing platform specific functions.public final IBrowser getDelegate()
public final void setDelegate(IBrowser delegate)
delegate - The delegate implementing platform specific functions.public boolean openExtenalBrowser(java.lang.String url)
openExtenalBrowser in interface IBrowserurl - Url to openpublic boolean openInternalBrowser(java.lang.String url,
java.lang.String title,
java.lang.String backButtonText)
openInternalBrowser in interface IBrowserurl - Url to opentitle - Title of the Navigation barbackButtonText - Title of the Back button barpublic boolean openInternalBrowserModal(java.lang.String url,
java.lang.String title,
java.lang.String backButtonText)
openInternalBrowserModal in interface IBrowserurl - Url to opentitle - Title of the Navigation barbackButtonText - Title of the Back button barpublic APIResponse invoke(APIRequest request)
invoke in interface APIBridgeinvoke in class BaseUIBridgerequest - APIRequest object containing method name and parameters.