Skip to main content
Version: 12 Dec 2024

MLWebViewScreenBehavior

NameSpace: Core

This class is used to Render Web View on the texture and propagate input to Web View.

Inherits from:
MonoBehaviour

Public Fields

IsConnected

Is WebView service connected.


public bool IsConnected { get; set; }


Public Methods

bool CreateWebViewWindow

Creates the WebView window.

public bool CreateWebViewWindow()

Returns: True if created WebView window with success.


void DestroyWebViewWindow

Destroys the WebView window.

public void DestroyWebViewWindow()

void GetWebViewSize

public void GetWebViewSize(
out uint width,
out uint height
)

Parameters

TypeNameDescription
out uintwidth
out uintheight

void ServiceConnected

public void ServiceConnected()

void ServiceDisconnected

public void ServiceDisconnected()

void Start

public void Start()

Public Attributes

WebView


public MLWebView WebView = null;

TypeDescription
MLWebViewAPI for MLWebView that allows an application to instantiate a hardware accelerated WebView and interact with it(via "mouse" and "keyboard" events).

scrollingMode


public ScrollingMode scrollingMode = ScrollingMode.Touchpad;


Public Enums

ScrollingMode

EnumeratorValueDescription
Touchpad
TriggerDrag