Skip to main content
Version: 12 Dec 2024

MLWebViewTabBehavior

NameSpace: Core

Inherits from:
MonoBehaviour

Public Fields​

WebView​

MLWebView instance that this tab is associated with.


public MLWebView WebView { get; set; }

TypeDescription
MLWebViewAPI 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

TypeNameDescription
MLWebViewTabBarBehaviortabBar
MLWebViewScreenBehaviorwebViewScreenThis class is used to Render Web View on the texture and propagate input to Web View.
InputFieldaddressBar
boolisPopup
ulongpopupID

void DestroyTab​

public void DestroyTab()

void GoToUrl​

public void GoToUrl(
string url
)

Parameters

TypeNameDescription
stringurl

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()