@Singleton public class WebViewManager extends Object
Modifier and Type | Field and Description |
---|---|
protected ViewGroup |
webViewHolder
The holder for the views.
|
Constructor and Description |
---|
WebViewManager(Activity activity,
WebViewConfigurator webViewConfigurator) |
Modifier and Type | Method and Description |
---|---|
void |
bringToFront(HybridWebView webView)
Adds or presents the WebView in the holder.
|
HybridWebView |
getCurrentlyShownWebView()
Returns currently shown WebView object.
|
HybridWebView |
getWebViewForName(String name)
Returns the WebView object for the given application URL.
|
void |
prepareWebView(String name,
String url,
String cause,
boolean show) |
HybridWebView |
removeWebView(String name)
Removes the WebView object with the given application URL from the map of the WebViews and from the holder.
|
void |
setWebViewHolder(ViewGroup holder)
Sets holder layout for the WebView.
|
protected ViewGroup webViewHolder
@Inject public WebViewManager(Activity activity, WebViewConfigurator webViewConfigurator)
public HybridWebView getWebViewForName(String name)
name
- WewView name.public HybridWebView removeWebView(String name)
name
- WewView name.public HybridWebView getCurrentlyShownWebView()
public void setWebViewHolder(ViewGroup holder)
holder
- Holder layout.public void bringToFront(HybridWebView webView)
webView
- WebView object.