MLWebViewTabBehavior
NameSpace: Core
Inherits from:
MonoBehaviour
Public Fields
WebView
MLWebView instance that this tab is associated with.
public MLWebView WebView { get; set; }
Type | Description |
---|---|
MLWebView | API for MLWebView that allows an application to instantiate a hardware accelerated WebView and interact with it(via "mouse" and "keyboard" events). |
tabUrl
public string tabUrl { get; set; }
Public Methods
bool CreateTab
public bool CreateTab(
MLWebViewTabBarBehavior tabBar,
MLWebViewScreenBehavior webViewScreen,
InputField addressBar,
bool isPopup =false,
ulong popupID =0
)
Parameters
Type | Name | Description |
---|---|---|
MLWebViewTabBarBehavior | tabBar | |
MLWebViewScreenBehavior | webViewScreen | This class is used to Render Web View on the texture and propagate input to Web View. |
InputField | addressBar | |
bool | isPopup | |
ulong | popupID |
void DestroyTab
public void DestroyTab()
void GoToUrl
public void GoToUrl(
string url
)
Parameters
Type | Name | Description |
---|---|---|
string | url |
void Pause
public void Pause()
void Resume
public void Resume()
void SelectTab
public void SelectTab()
void UnselectTab
public void UnselectTab()
void UpdateTabLabel
public void UpdateTabLabel()
Public Attributes
IsPaused
public bool IsPaused => isPaused;
Public Events
OnTabSelected
public Action< MLWebViewTabBehavior > OnTabSelected()