public class

XWalkUIClient

extends XWalkUIClientInternal
java.lang.Object
   ↳ XWalkUIClientInternal
     ↳ org.xwalk.core.XWalkUIClient

Class Overview

This class notifies the embedder UI events/callbacks.

Summary

Nested Classes
enum XWalkUIClient.JavascriptMessageType The type of JavaScript modal dialog. 
Public Constructors
XWalkUIClient(XWalkView view)
Constructor.
Public Methods
void onFullscreenToggled(XWalkViewInternal view, boolean enterFullscreen)
void onJavascriptCloseWindow(XWalkViewInternal view)
boolean onJavascriptModalDialog(XWalkViewInternal view, JavascriptMessageTypeInternal typeInternal, String url, String message, String defaultValue, XWalkJavascriptResultInternal result)
void onRequestFocus(XWalkViewInternal view)
void onScaleChanged(XWalkViewInternal view, float oldScale, float newScale)
void openFileChooser(XWalkViewInternal view, uploadFile, String acceptType, String capture)
void openFileChooser(XWalkView view, uploadFile, String acceptType, String capture)
Tell the client to open a file chooser.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public XWalkUIClient (XWalkView view)

Constructor.

Parameters
view the owner XWalkView instance.

Public Methods

public void onFullscreenToggled (XWalkViewInternal view, boolean enterFullscreen)

public void onJavascriptCloseWindow (XWalkViewInternal view)

public boolean onJavascriptModalDialog (XWalkViewInternal view, JavascriptMessageTypeInternal typeInternal, String url, String message, String defaultValue, XWalkJavascriptResultInternal result)

public void onRequestFocus (XWalkViewInternal view)

public void onScaleChanged (XWalkViewInternal view, float oldScale, float newScale)

public void openFileChooser (XWalkViewInternal view, uploadFile, String acceptType, String capture)

public void openFileChooser (XWalkView view, uploadFile, String acceptType, String capture)

Tell the client to open a file chooser.

Parameters
view the owner XWalkView instance.
uploadFile the callback class to handle the result from caller. It MUST be invoked in all cases. Leave it not invoked will block all following requests to open file chooser.
acceptType value of the 'accept' attribute of the input tag associated with this file picker.
capture value of the 'capture' attribute of the input tag associated with this file picker